By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,364 Members | 1,278 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,364 IT Pros & Developers. It's quick & easy.

Seperate Auth for single page

P: n/a
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

Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You 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:%2****************@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

Nov 18 '05 #2

P: n/a
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


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.