redirection page

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top