Re: Forms Authentication - Supress displaying the login page for certain web pages
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Wed, 19 Jul 2006 03:04:10 GMT
Thanks for Dominick's informative suggestion.
Hi Felix,
As Dominick has suggested, you can use the <location> element to grant
specific <authorization> setting for individual pages or directories in the
ASP.NET web application.
#How to: Configure Specific Directories Using Location Settings
http://msdn2.microsoft.com/en-us/library/ms178692.aspx
For example, the following configuration sections customize the application
to allow anomymous(unauthenticated) user to access the "ContactUS.aspx"
page and the "PublicUsers" sub directory under the application root dir:
==============================
<configuration >
<location path="ContactUS.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="PublicUsers">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
....................
==============================
If there is anything unclear or any other information you need, please feel
free to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial
response from the community or a Microsoft Support Engineer within 1
business day is
acceptable. Please note that each follow up response may take approximately
2 business days
as the support professional working with you may need further investigation
to reach the
most efficient resolution. The offering is not appropriate for situations
that require
urgent, real-time or phone-based interactions or complex project analysis
and dump analysis
issues. Issues of this nature are best handled working with a dedicated
Microsoft Support
Engineer by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- References:
- Forms Authentication - Supress displaying the login page for certain web pages
- From: Felix Wafytech
- Re: Forms Authentication - Supress displaying the login page for certain web pages
- From: Dominick Baier
- Forms Authentication - Supress displaying the login page for certain web pages
- Prev by Date: RE: Forms Authentication - Sudden Redirect Failure on Login
- Next by Date: RE: Forms Authentication - Sudden Redirect Failure on Login
- Previous by thread: Re: Forms Authentication - Supress displaying the login page for certain web pages
- Next by thread: Source code for ActiveDirectoryMembership provider?
- Index(es):
Relevant Pages
|
|