<location> multiple file question

D

David Thielen

Hi;

I need to have the following in Web.config:
<location path="help/login*.htm">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>

But it does not like the * in login*.htm. We have this as the help files for
the login page - but we have login.htm, login-en.htm, login-en-us.htm, etc.
28 so far and growing. Do we need to list each languages help as a seperate
<location> set of nodes?

If so this is a giant PITA. (Microsoft still seems to not think through
globalization issues that well.)

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
D

Dominick Baier

you can only specify files or a directory. put them all into a single directory.


Also be aware that htm files will only get affected by forms auth if you
have mapped them to the ASP.NET runtime.
 
S

Steven Cheng[MSFT]

Hi Dave,

I agree with Dominick that you'd better put all those help document
pages(which does not requier user to login) in a sub directory so that you
can use <location> element to configure <authorization> setting for the
entire directory instead of individual pages.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top