What is the use of location tag in web.config file
Answer Posted / asif ismail kunnibhavi
configuration setting is applied to specific file/folder
with appropriate "Path" attribute.
e.g
1)applying setting to everything under System.web
<location path="Administrator" >
<system.web>
<authorization>
<deny users="?" />
<allow roles="Administrator" />
<deny users="*" />
</authorization>
</system.web>
</location>
2)applying setting to specific directory called "folder1"
<!— Configuration for the "folder1" subdirectory. -->
<location path="sub1">
<system.web>
<httpHandlers>
<add verb="*" path="folder1.Scott"
type="folder1.Scott"/>
<add verb="*" path="folder1.David"
type="folder1.David"/>
</httpHandlers>
</system.web>
</location>
| Is This Answer Correct ? | 17 Yes | 8 No |
Post New Answer View All Answers
How do you identify that the page is postback?
Why do I get error message "could not load type" whenever I browse to my asp.net web site?
What is the parent class of all the web server control?
What is ASLM?
I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?
How to find out what version of asp.net I am using on my machine?
What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?
Describe the method to create a permanent cookie?
How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?
How does http session work?
How can you send an email message from an asp.net web page?
Where code pages are used?
What is validation in asp.net?
What do you mean by View State and what is its role?
Describe the Server Control Events of ASP.NET?