Question Loading different page after button click

McCoy

New member
Joined
Jan 5, 2011
Messages
1
Programming Experience
10+
I am new to asp, been developing vb.net for 10 years.

If I have a page, let's say a login page. When the user clicks login (an asp button), I check the credentials. If all is ok, it should show a different page, if not, stay on the same page.

So how do I code that showing of a different page?

My code, for example (on the click of the Login button):
If LoginSuccessful() = True Then
ShowWelcomePage()
Else
lbkError.Text = "Error Logging in"
End If

How do I code ShowWelcomePage?

Thanks so much!
 
Back
Top