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
What symbol would you use to denote, the start of a code block in aspx views?
How to use ipostback?
What is web api and why to use it?
What is anonymous authentication?
Give an example of cookie abuse.
Is a dll file an executable?
Explain the concept of MVC Scaffolding?
What is content place holder?
What is the postback property in asp.net?
What are the 3 types of web?
Explain the advantages of caching?
What are validator? Name the validation controls in asp.net? How do you disable them?
Describe the application event handlers in ASP.NET?
How to add DateTime Control in normal DataGrid Server Control?
How to retrieve user name in case of Window Authentication?