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] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)
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] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)