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.
*************** *************** *************** ******
<configuratio n>
<system.web>
<authorizatio n>
<deny users="?" />
</authorization>
</system.web>
<location path="default.a spx,addLogon.as px,LogonForgot. aspx">
<system.web>
<authorizatio n>
<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.
*************** *************** *************** *************** *************** *******
<configuratio n>
<system.web>
<authorizatio n>
<deny users="?" />
</authorization>
</system.web>
<location path="default.a spx">
<system.web>
<authorizatio n>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="addLogon. aspx">
<system.web>
<authorizatio n>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="logonForg ot.aspx">
<system.web>
<authorizatio n>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
*************** *************** *************** *************** **************
Thanks,
Tom 4 2966
As far as I know you have to use the second one. There is no way to specify
multiple values in xml.
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**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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. *************** *************** *************** ****** <configuratio n> <system.web> <authorizatio n> <deny users="?" /> </authorization> </system.web> <location path="default.a spx,addLogon.as px,LogonForgot. aspx"> <system.web> <authorizatio n> <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. *************** *************** *************** *************** *************** ******* <configuratio n> <system.web> <authorizatio n> <deny users="?" /> </authorization> </system.web> <location path="default.a spx"> <system.web> <authorizatio n> <allow users="*" /> </authorization> </system.web> </location> <location path="addLogon. aspx"> <system.web> <authorizatio n> <allow users="*" /> </authorization> </system.web> </location> <location path="logonForg ot.aspx"> <system.web> <authorizatio n> <allow users="*" /> </authorization> </system.web> </location> </configuration> *************** *************** *************** *************** **************
Thanks,
Tom
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**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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. *************** *************** *************** ****** <configuratio n> <system.web> <authorizatio n> <deny users="?" /> </authorization> </system.web> <location path="default.a spx,addLogon.as px,LogonForgot. aspx"> <system.web> <authorizatio n> <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.
*************** *************** *************** *************** *************** *
****** <configuratio n> <system.web> <authorizatio n> <deny users="?" /> </authorization> </system.web> <location path="default.a spx"> <system.web> <authorizatio n> <allow users="*" /> </authorization> </system.web> </location> <location path="addLogon. aspx"> <system.web> <authorizatio n> <allow users="*" /> </authorization> </system.web> </location> <location path="logonForg ot.aspx"> <system.web> <authorizatio n> <allow users="*" /> </authorization> </system.web> </location> </configuration> *************** *************** *************** *************** **************
Thanks,
Tom
"Saravana" <sa******@sct.c o.in> wrote in message
news:Ok******** ******@TK2MSFTN GP09.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**********@f tsolutions.com> wrote in message news:%2******** ********@TK2MSF TNGP12.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. *************** *************** *************** ****** <configuratio n> <system.web> <authorizatio n> <deny users="?" /> </authorization> </system.web> <location path="default.a spx,addLogon.as px,LogonForgot. aspx"> <system.web> <authorizatio n> <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. *************** *************** *************** *************** *************** * ****** <configuratio n> <system.web> <authorizatio n> <deny users="?" /> </authorization> </system.web> <location path="default.a spx"> <system.web> <authorizatio n> <allow users="*" /> </authorization> </system.web> </location> <location path="addLogon. aspx"> <system.web> <authorizatio n> <allow users="*" /> </authorization> </system.web> </location> <location path="logonForg ot.aspx"> <system.web> <authorizatio n> <allow users="*" /> </authorization> </system.web> </location> </configuration> *************** *************** *************** *************** **************
Thanks,
Tom
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 have an series of interactive HTML
forms. The user begins a Cookie session. A database connection is
opened and a transaction is begun. After the user goes through any
number of pages where they update the database they finish on a page
where...
|
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.,
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=Tidy7IDbDHA.2108%40cpmsftngxa06.phx.gbl)
that indicate that ASP will queue up requests when they come in with the
same "session".
|
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 surfin
it in multiple browsers simultaneously the site generates a generic
runtime error after awhile. I'm thinking this has something to do
with my access database and multiple connections. I'm using forms
authentication with a login page. Is...
|
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 Authentication??
What can i do??
Thanks
Nicolas
|
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 contains
all the "sub" web pages. BUT: NO FRAMES should be used!!!
Instead I am thinking of a mechanism which just concatenates all the
10 different web pages and shows them as ONE page in my browser (IntExp or Firefox).
Be aware of the...
| |
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: 20px;
left: 20px;
|
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 can the form tages be outside of the
content tags?
Does this make since? Below is my source to the pages. Basically I need
both content tags to have form tags.
|
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, smaller ones, and referring to them in my HTML/ASP files on
an as-needed basis. Essentially, I've organized things as:
/default.asp
|
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 messing up.
Problems:
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |