Thursday, March 29, 2012

Seperate Auth for single page

Can you specify a different authentication method ('none') for a single
page? I have the web.config designed for 'Forms' auth, but I have one page
that I want outside the auth method, without putting it into a seperate
folder with it's own web.config.

Thanks

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.comYou can specify some pages to require login, and others to not require login
via your web.config file by using the <location> tag.

Here is an example with sample code that you can download and play with.
http://www.dotnetbips.com/displayarticle.aspx?id=117

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%23GKNgVP4DHA.1700@.TK2MSFTNGP11.phx.gbl...
> Can you specify a different authentication method ('none') for a single
> page? I have the web.config designed for 'Forms' auth, but I have one page
> that I want outside the auth method, without putting it into a seperate
> folder with it's own web.config.
> Thanks
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> www.Darkfalz.com
Yes - see the <location> element of web.config.

example:

<location path="Logon.aspx">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location
HTH,

--
Scott
http://www.OdeToCode.com

On Thu, 22 Jan 2004 08:40:56 -0600, "Curt_C [MVP]"
<software_AT_darkfalz.com> wrote:

>Can you specify a different authentication method ('none') for a single
>page? I have the web.config designed for 'Forms' auth, but I have one page
>that I want outside the auth method, without putting it into a seperate
>folder with it's own web.config.
>Thanks

0 comments:

Post a Comment