L
lsumnler
I have written or I should say walked through (copied) the one training
session on the Webmatrix dealing with the creation of a login.aspx.
This is working great. Once the login has been accepted it automaticly
brings up the default.aspx.
My questions are as follows:
1. If I want this to bring up a aspx file other than default when the
Login button is pressed how would I do that. Following is the code
from the example;
Sub LoginBtn_Click(Sender As Object, E As EventArgs)
If Page.IsValid Then
Dim userDS As New System.Data.DataSet
userDS = GetUser(UserName.Text, UserPass.Text)
If userDS.Tables(0).Rows.Count = 1 Then
FormsAuthentication.RedirectFromLoginPage(UserName.Text,
true)
Else
Msg.Text = "Invalid Credentials: Please try again"
End If
End If
2. The aspx file I need to call is also a login type screen. The
login and password is the same for everyone. So what I would like to
do is from my login screen, provided it is valid, to call this other
login screen passing in the common user and password and not actually
display but take the user then into the system.
Thanks
Len Sumnler
session on the Webmatrix dealing with the creation of a login.aspx.
This is working great. Once the login has been accepted it automaticly
brings up the default.aspx.
My questions are as follows:
1. If I want this to bring up a aspx file other than default when the
Login button is pressed how would I do that. Following is the code
from the example;
Sub LoginBtn_Click(Sender As Object, E As EventArgs)
If Page.IsValid Then
Dim userDS As New System.Data.DataSet
userDS = GetUser(UserName.Text, UserPass.Text)
If userDS.Tables(0).Rows.Count = 1 Then
FormsAuthentication.RedirectFromLoginPage(UserName.Text,
true)
Else
Msg.Text = "Invalid Credentials: Please try again"
End If
End If
2. The aspx file I need to call is also a login type screen. The
login and password is the same for everyone. So what I would like to
do is from my login screen, provided it is valid, to call this other
login screen passing in the common user and password and not actually
display but take the user then into the system.
Thanks
Len Sumnler