Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to launch a ASP page by coding 2

Status
Not open for further replies.

Malchik

Programmer
Dec 8, 2001
148
CA
Hi, I am an experienced VB6 developer and I am learning ASP.NET/VB.NET. I am building a Web search interface for our Intranet and I would like to know how to load another ASP page from the code. I have a Login page linked to an SQL database to authentify the user when the button 'cmdLogin' is pressed. There is a call to a StoredProc that will return an error message if the credentials are invalid, otherwise it returns 'ALLOWED' Here is the code so far:

Protected Sub cmdLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdLogin.Click
'Refresh the SQL connection
sqlLogin.DataBind()
'Refresh the DataView control
detView.DataBind()

If detView.Rows(0).Cells(1).Text = "ALLOWED" Then

Else
detView.Visible = True
txtUserName.Focus()
End If
End Sub

If it is 'ALLOWED', I need to launch a ASP page

Thanks for your help


Mal'chik [bigglasses]
 
Thanks ca8msm, that was exactly what I was looking for

Mal'chik [bigglasses]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top