W
Water Cooler v2
In Forms based authentication mode, say my login page has to be
redirected to "db.aspx" if the login was successful, how do I supply
this redirect without a Response.Redirect() using FormsAuthentication
class?
If I simply say,
If MyDatabaseUserAuthenticationMethod(txtUserName.Text,
txtPassword.Text) Then
FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, False)
Else
lblMessage.Text = "Please jump into the well and die."
End If
and if the user logs in correctly, then he will, by default, be
redirected automatically to the "default.aspx" page if it exists. If
the page does not exist, he will come back to the login page because no
where in the login page have we specified an equivalant of the
primitive "action" attribute that tells whom to POST the page to, so
the same page will recieve a POSTBACK.
How do I tell ASP.NET that if the forms based authentication is
successful, take this guy to this page, say, "db.aspx"?
redirected to "db.aspx" if the login was successful, how do I supply
this redirect without a Response.Redirect() using FormsAuthentication
class?
If I simply say,
If MyDatabaseUserAuthenticationMethod(txtUserName.Text,
txtPassword.Text) Then
FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, False)
Else
lblMessage.Text = "Please jump into the well and die."
End If
and if the user logs in correctly, then he will, by default, be
redirected automatically to the "default.aspx" page if it exists. If
the page does not exist, he will come back to the login page because no
where in the login page have we specified an equivalant of the
primitive "action" attribute that tells whom to POST the page to, so
the same page will recieve a POSTBACK.
How do I tell ASP.NET that if the forms based authentication is
successful, take this guy to this page, say, "db.aspx"?