In the current web.config (that has this <authentication> setting) you
probably have authorization set as:
<authorization>
<deny users="?" />
</authorization>
that would impact all pages in the application by default.
Now to the answer, you can specify different <authorization> for a specific
page or subfolder by using <location> tag. Set this <location> element
outside the <system.web> tags in current web.config, but of course inside
<configuration> elements.
<location path="contactUS.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
Now remembering the setting in generally to deby unauthorized users,
unauthorized users can now access login.aspx and contactUS.aspx pages in
your application.
--
Teemu Keiski
MCP, Designer/Developer
Mansoft tietotekniikka Oy
http://www.mansoft.fi
AspInsiders Member,
www.aspinsiders.com
ASP.NET Forums Moderator,
www.asp.net
AspAlliance Columnist,
www.aspalliance.com
"TaeHo Yoo" <yo******@yahoo.com> wrote in message
news:uK**************@TK2MSFTNGP10.phx.gbl...
In my current web.config, I have these lines
-----------------------------------------------------------
<authentication mode="Forms">
<forms name="frmAuthentication" loginUrl="login.aspx" />
</authentication>
-----------------------------------------------------------
How do I need to modify it, so that contactUS.aspx should be accessed
without logining in.
Thanks a lot in advance,
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!