Can I get the Forms Auth 'loginUrl' setting from code?
From: Jeff Lanning (ihatespam.jeff_lanning@hotmail.com)
Date: 04/10/03
- Next message: Eric Tan: "Re: Access Denied Error"
- Previous message: Mike Moore [MSFT]: "RE: UNC file share and NTLM user identity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Jeff Lanning" <ihatespam.jeff_lanning@hotmail.com> Date: Wed, 9 Apr 2003 19:24:55 -0500
I'm using Forms Auth need to manually redirect the user to the login page
but I can't figure out how to get the 'loginUrl" setting from the <forms>
tag in the web.config file. In the past, I have always just hard-coded the
page into the code...
Response.Redirect("login.aspx?ReturnUrl=" + Request.Path, true);
...but I can't do that it this case because the URL is different between
test and production environments (the login page lives with another ASP.NET
application).
Any ideas?
Thanks for your help!
Jeff
- Next message: Eric Tan: "Re: Access Denied Error"
- Previous message: Mike Moore [MSFT]: "RE: UNC file share and NTLM user identity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|