Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple aspx pages in Location Path
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Multiple aspx pages in Location Path
Environment versions
Environment:
C# 4.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01613745
Message ID:
01613745
Views:
44
Hi,

When using Form Authentication you can specify in the web.config that an ASPX page should be allowed for any user without authentication.
This is a sample code:
<location path="MyTestPage1.aspx">
	  <system.web>
	    <authorization>
		    <allow users ="*" />
	    </authorization>
	    </system.web>
</location>
And you can have as many of these Location specified as needed. But I was wondering if it is possible to specify multiple aspx pages in one location. Here is what I tried but it does not work:
<location path="MyTestPage1.aspx; MyTestPage2.apx; MyTestPage3.aspx">
	  <system.web>
	    <authorization>
		    <allow users ="*" />
	    </authorization>
	    </system.web>
</location>
Please let me know if it is possible and how. TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform