Re: Form Authentication
From: Michael Mayer [C# MVP] (mike_at_mag37.com)
Date: 02/16/04
- Next message: Steve Chatham: "Re: Radio button question"
- Previous message: Chad Z. Hower aka Kudzu: "Re: Radio button question"
- In reply to: slawek xxxxx: "Form Authentication"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 16 Feb 2004 15:47:55 -0600
Try "~/CommonPages/loginPage.aspx"
Commands like Response.Redirect() and a lot of other server side controls
interpret "~/" as application root. Be careful that you dont do something
like this:
<A href="~/CommonPages/loginPage.aspx">Login</a>
because the users machine won't know ~/
Instead, i think this would work:
<A href='<%# ~/CommonPages/loginPage.aspx %>'>Login</a>
-- Mike Mayer, C# MVP mike@mag37.com http://www.mag37.com/csharp/ "slawek xxxxx" <slawek7302@wp.pl> wrote in message news:Ol2BDHI9DHA.2432@TK2MSFTNGP10.phx.gbl... > Hello everyone, > > I have found a problem with form authentication method that I can't > solve. The problem is: > > I want to use a form authentication in my application, so i set : > <authentication mode="Forms"> > ,and > <forms name="LoginForm" loginUrl="SM_LoginPage.aspx" protection="All"> > > but the structure of my application folders is following: > > root > | > +CommonPages > | + loginPage.aspx > | > +SysPages > | + Sys1Pages > | | +Page1.aspx > | + Sys2Pages > | +Page2.aspx > + OtherPages > + Page3.asp > > Because of this structure the relative path of LoginPage.aspx is > diffrent for Page1.aspx(../../CommonPages/loginPage.aspx) and Page for > page3.aspx(../CommonPages/loginPage.aspx). I have to set this path in > web.config and I want to use relative path (not http://.....). Is there > any way to do this?? (sth like {root}//CommonPages/loginPage.aspx)?? > Thanks for any help > > Best Regards > Slawek > > > > > *** Sent via Developersdex http://www.developersdex.com *** > Don't just participate in USENET...get rewarded for it!
- Next message: Steve Chatham: "Re: Radio button question"
- Previous message: Chad Z. Hower aka Kudzu: "Re: Radio button question"
- In reply to: slawek xxxxx: "Form Authentication"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|