Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple aspx pages in Location Path
Message
De
17/01/2015 02:56:25
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 4.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01613745
Message ID:
01613772
Vues:
31
>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

Only one file (or folder) can be specified :
http://msdn.microsoft.com/en-us/library/ms178692%28v=vs.140%29.aspx
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform