Re: Custom redirectURL
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Sat, 27 Aug 2005 21:00:05 -0400
re:
> How do I tell ASP.NET that if the forms based authentication
> is successful, take this guy to this page, say, "db.aspx"?
You can't.
What you could do is :
1. set the default page for the application to "db.aspx"
or
2. In "default.aspx", if that's your default page, or in whatever page
you have set the default page to, set a Response.Redirect("db.aspx")
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
"Water Cooler v2" <wtr_clr@xxxxxxxxx> wrote in message
news:1125190047.715175.76850@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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"?
>
.
- Follow-Ups:
- Re: Custom redirectURL
- From: Water Cooler v2
- Re: Custom redirectURL
- References:
- Custom redirectURL
- From: Water Cooler v2
- Custom redirectURL
- Prev by Date: Re: Authentication
- Next by Date: Re: <sessionState cookieless="true" />
- Previous by thread: Custom redirectURL
- Next by thread: Re: Custom redirectURL
- Index(es):
Relevant Pages
|