P
pad
i have two pages. one is mainpage.aspx and antoher one is
login.aspx.
everytime i try to run the mainpage.aspx it redirected
automatically to login.aspx. where it supposed to run the
mainpage.aspx first. button members should link to
login.aspx this it to allow the user to login.
the code i used in login.aspx are as follow:
Sub Button_Click( s As Object, e As EventArgs )
If IsValid Then
If dbAuthenticate( txtUSername.Text,
txtPassword.Text ) > 0 Then
FormsAuthentication.RedirectFromLoginPage
(txtUsername.Text, False )
End If
End IF
End Sub
login.aspx.
everytime i try to run the mainpage.aspx it redirected
automatically to login.aspx. where it supposed to run the
mainpage.aspx first. button members should link to
login.aspx this it to allow the user to login.
the code i used in login.aspx are as follow:
Sub Button_Click( s As Object, e As EventArgs )
If IsValid Then
If dbAuthenticate( txtUSername.Text,
txtPassword.Text ) > 0 Then
FormsAuthentication.RedirectFromLoginPage
(txtUsername.Text, False )
End If
End IF
End Sub