R
Randall Parker
Suppose the first URL a visitor visits is Logon.aspx. There's not an original page to
return the user to. So how can I detect whether to send the user to the original page
he tried to visit versus send him to a default page?
I'm looking at this in the MS doc:
http://msdn.microsoft.com/library/d...mWebSecurityFormsAuthenticationClassTopic.asp
void LoginBtn_Click(Object sender, EventArgs e)
{
if (Page.IsValid)
{
// Call the authentication event handler delegate (not included in
this example).
if (FormsAuthentication.Authenticate(UserName.Text, UserPass.Text))
{
// Return to the originally requested URL.
FormsAuthentication.RedirectFromLoginPage(UserName.Text,
Remember.Checked);
}
else
{
Msg.Text = "Invalid Credentials: Please try again";
}
}
}
Well, I want to send the user to somem page that is my default if he didn't try to
visit some page already.
return the user to. So how can I detect whether to send the user to the original page
he tried to visit versus send him to a default page?
I'm looking at this in the MS doc:
http://msdn.microsoft.com/library/d...mWebSecurityFormsAuthenticationClassTopic.asp
void LoginBtn_Click(Object sender, EventArgs e)
{
if (Page.IsValid)
{
// Call the authentication event handler delegate (not included in
this example).
if (FormsAuthentication.Authenticate(UserName.Text, UserPass.Text))
{
// Return to the originally requested URL.
FormsAuthentication.RedirectFromLoginPage(UserName.Text,
Remember.Checked);
}
else
{
Msg.Text = "Invalid Credentials: Please try again";
}
}
}
Well, I want to send the user to somem page that is my default if he didn't try to
visit some page already.