By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,625 Members | 1,274 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,625 IT Pros & Developers. It's quick & easy.

possible to add a number of pages to single <location> node within web.config?

P: n/a
i've got a few pages on my site that don't require authentication. is it
possible to specify each on of these in the same node within web.config, or
do i have to repeat for each? i'd like to do the following if possible:

<location path="LoginFailed.aspx", "help.aspx", "faqs.aspx",
"sendpassword.aspx">

<system.web>

<authorization>

<allow users="*" />

</authorization>

</system.web>

</location>
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Don't know, try rather to list the values inside the attribute for XML
consistency (path="a.aspx,b.aspx" etc...)

As a side note, most often those pages sharing the same policy are just
placed in their own directory to ease management...

--

"Dica" <ge*****@hotmail.com> a écrit dans le message de
news:Vc********************@rogers.com...
i've got a few pages on my site that don't require authentication. is it
possible to specify each on of these in the same node within web.config, or do i have to repeat for each? i'd like to do the following if possible:

<location path="LoginFailed.aspx", "help.aspx", "faqs.aspx",
"sendpassword.aspx">

<system.web>

<authorization>

<allow users="*" />

</authorization>

</system.web>

</location>

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.