473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Multiple pages for Location tags?

Can I set up multiple pages in the same Location tag? I thought I saw
somewhere that I could. I tried the following, but it doesn't work.
************************************************** *
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
<location path="default.aspx,addLogon.aspx,LogonForgot.aspx" >
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
************************************************** ************

The following does work, but since they are the same I would like to use the
same location tag if possible.
************************************************** ********************************
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
<location path="default.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="addLogon.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="logonForgot.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
************************************************** ************************

Thanks,

Tom
Nov 19 '05 #1
4 2947
As far as I know you have to use the second one. There is no way to specify
multiple values in xml.
Nov 19 '05 #2
Hi Tom,

As far as I am aware it is not possible to have multiple entries in the path
attribute. See
http://msdn.microsoft.com/library/de...onsettings.asp
for more information.

It could be that you need to think about the structure of your site. To
quote MSDN - Using <location> with a missing path attribute applies the
configuration settings to the current directory and all child directories.

You may find that easier to implement. If not, multiple <location> elements
it is.

Regards,

Stuart
MCSD, MCT

"tshad" <ts**********@ftsolutions.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Can I set up multiple pages in the same Location tag? I thought I saw
somewhere that I could. I tried the following, but it doesn't work.
************************************************** *
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
<location path="default.aspx,addLogon.aspx,LogonForgot.aspx" >
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
************************************************** ************

The following does work, but since they are the same I would like to use
the same location tag if possible.
************************************************** ********************************
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
<location path="default.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="addLogon.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="logonForgot.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
************************************************** ************************

Thanks,

Tom

Nov 19 '05 #3
You cant specify multiple files in location path. But you can place all
these files into one folder, and specify that folder name in location path.
Location path accepts folder name.

--
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"tshad" <ts**********@ftsolutions.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Can I set up multiple pages in the same Location tag? I thought I saw
somewhere that I could. I tried the following, but it doesn't work.
************************************************** *
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
<location path="default.aspx,addLogon.aspx,LogonForgot.aspx" >
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
************************************************** ************

The following does work, but since they are the same I would like to use the same location tag if possible.
************************************************** **************************
****** <configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
<location path="default.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="addLogon.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="logonForgot.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
************************************************** ************************

Thanks,

Tom

Nov 19 '05 #4
"Saravana" <sa******@sct.co.in> wrote in message
news:Ok**************@TK2MSFTNGP09.phx.gbl...
You cant specify multiple files in location path. But you can place all
these files into one folder, and specify that folder name in location
path.
Location path accepts folder name.
That is what I may have to do. I don't know which is better - 10 files in
one folder or 10 Location entries.

Thanks,

Tom.
--
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"tshad" <ts**********@ftsolutions.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Can I set up multiple pages in the same Location tag? I thought I saw
somewhere that I could. I tried the following, but it doesn't work.
************************************************** *
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
<location path="default.aspx,addLogon.aspx,LogonForgot.aspx" >
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
************************************************** ************

The following does work, but since they are the same I would like to use

the
same location tag if possible.

************************************************** **************************
******
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
<location path="default.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="addLogon.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="logonForgot.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
************************************************** ************************

Thanks,

Tom


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: noah | last post by:
Does PHP have a feature to associate Cookie sessions with a persistent database connection that will allow a single transaction across multiple HTTP requests? Here is how I imagine my process: I...
11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
6
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
2
by: Nicolas Bottarini | last post by:
Hi!! I have a site with a backend subdirectory with the backend of the site. I need that the site to have one login and the backend directory another one. Is this possible with Forms...
4
by: Wladimir Borsov | last post by:
Ok, think of let say 10 different web pages on the internet. Each of them are usual html web pages. Nothing special. What I want to do now is to create a new meta resp. grouping web page which...
3
by: Bart Van der Donck | last post by:
Hello, I'm having a hard time trying to configure printed output that consists of multiple pages. The idea is the following: <div style=" border: 1px solid blue; position: absolute; top:...
3
by: MikeB | last post by:
Hello, I have a content page that is from a Master page which has 2 content panes. How do I add my forms to the content page? Each pane needs a form but you can not have multiple form tags nor...
6
by: Homer J. Simpson | last post by:
Hi all, I have enough experience with HTML/classic ASP to get by, and I'm trying to learn ASP.NET. Traditionally, I've taken the habit of breaking out extra-long CSS files into multiple,...
3
by: nigelesquire | last post by:
Please help! I'm trying to clone and delete multiple rows with JavaScript. I need two delete buttons that work...! I only have one for now, but it's not working properly, the output count is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.