Question Problem with login based code

Andrew123

New member
Joined
Mar 9, 2011
Messages
1
Programming Experience
Beginner
<script language="VB" runat="server">
Dim pw As String
Dim un As String
Sub page_load()
If Request.Form("btnLogin") > "" Then
pw = "Password"
un = "user"
If txtName.Value = "user" And txtPass.Value = "password" Then
Response.Redirect("clientregister.aspx")
Else
MsgBox("arrrr mi hearties")
End If
End If

If Request.Form("btnregister") > "" Then
Response.Redirect("ClientRegister.aspx")
End If
End Sub




</script>

Im running Visual Studio 2008 sp1 on windows 7
the code seems to be fine but every time I click on the corresponding button nothing happens , it is meant to redirect me to another page.I have put breakpoints on the code and it hits each line.
 

Latest posts

Back
Top