I am creating the form without database connection
and my code just look like this:
<script runat="server">
sub Page_Load
If (txtuname.Text = "xxx") AND (txtpass.Text = "xxx") Then
response.write("Welcome user")
Server.Transfer("login2.aspx")
Else
response.write("Invalid username and password")
Server.Transfer("login.aspx")
End IF
End sub
</script>