Can I get the Forms Auth 'loginUrl' setting from code?

From: Jeff Lanning (ihatespam.jeff_lanning@hotmail.com)
Date: 04/10/03


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



Relevant Pages

  • Re: STMP Auth Failure
    ... >LOGIN unless the session is encrypted. ... allowing PLAIN and LOGIN SMTP AUTH is no greater risk ...
    (Fedora)
  • Re: Defaulting domain w/integrated auth
    ... for internal - it will auto login since user already logged to ... > Maybe I have other setup issues but if I disable Intergrated auth the my> sharepoint server portals will not build thier search databases issuing> authorization warnings. ...
    (microsoft.public.inetserver.iis)
  • Re: Exchange 2003 SMTP nicht konform zu RFC?
    ... >> AUTH LOGIN schreiben. ... die kein Challenge mit Daten benötigt. ... > Methode LOGIN keinen Challenge erfordert? ... Für ein SMTP-AUTH, das "LOGIN" als Authentifizierungsart unterstützt, sollte ...
    (microsoft.public.de.german.exchange2000.setup.installation)
  • Re: Exchange 2003 SMTP nicht konform zu RFC?
    ... >> AUTH LOGIN schreiben. ... die kein Challenge mit Daten benötigt. ... > Methode LOGIN keinen Challenge erfordert? ... Für ein SMTP-AUTH, das "LOGIN" als Authentifizierungsart unterstützt, sollte ...
    (microsoft.public.de.exchange)
  • Re: sendmail user name and password authentication
    ... > still does not take place, it works if I on mail client I dont check ... > login ect. ... Seeing the AUTH MECHs offered does not mean anything. ... Fedora GNU/Linux Core 2 kernel 2.6.6-1.435.2.3.ad.umlsmp ...
    (Fedora)

Quantcast