I am trying to create a simple login form on giving correct username and password the form is not tranferring to the next page it just remains in the same page.And my code is
<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")
End If
End sub
</script>