Thanks, however, after I modified the code, I got the following error:
Server Error in '/calendar' Application.
----------------------------------------------------------------------------
----
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.
Parser Error Message: Unrecognized configuration section 'location'
Source Error:
Line 71: -->
Line 72: </authorization>
Line 73: <location path="calendar. aspx">
Line 74: <system.web>
Line 75: <authorizatio n>
Source File: c:\inetpub\wwwr oot\calendar\we b.config Line: 73
"Martin Marinov" <me********@mec rossroad.bg> wrote in message
news:OZ******** ******@tk2msftn gp13.phx.gbl...
you could use something like this :
<authenticati on mode="Forms">
<forms name="YourName" loginUrl="login .aspx" protection="All " />
</authentication>
<authorizatio n>
<deny users="?" />
<allow users="*" />
</authorization>
<location path="yourpage. aspx">
<system.web>
<authorizatio n>
<allow users="*"/>
</authorization>
</system.web>
</location>
This will ask the user for login, but if the user reach yourpage.aspx it
will be allowed to everybody without a login
Regards
Martin
"nick" <nb***@removeth is.hotmail.com> wrote in message
news:Om******** ******@tk2msftn gp13.phx.gbl... Hi, How should I write the web.config file to allow some of the aspx
files be executable to all users and others are required users to login? All
the aspx files are in the same folder.