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
Difference between Response.redirect vs server.transfer?
What is the full form of asp.net?
How do we implement bundling in MVC?
What is latest version of asp.net mvc? : Asp.Net MVC
Difference between application events and session events
What is recordset asp?
In early binding will the method invoked on com component will verify it?s existance in the system or not ?
What is postback and autopostback in asp.net?
i have 3+ exp in .net? i am going interview now but they asked me do you know any TOOL? which tool will i study please refer me?
What are Caching techniques in .NET
How do you deploy your asp.net application?
List of words of preprocessor in .net?
Explain the disadvantages of viewstate?
What are the authentication types in asp.net?
Explain the code Access Security (CAS) in .net Framework?