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 is the difference between an htmlinputcheckbox control and an htmlinputradiobutton control?
How to disable validator control by client side JavaScript?
What is query string? What are its advantages and limitations?
Define authentication and authorization.
Why and where this web.config file is used?
What are the main requirements for caching?
What is the difference between file-based dependency and key-based dependency?
Explain asp.net web forms.
What is asp.net master page?
Explain the purpose of storyboard.targetproperty.
If we remove web.config or machine.config from the application then, is this application will works?
What is the function of new view engine in asp.net? : asp.net mvc
What are the modes of updation in an updatepanel?
benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks
What is asp.net architecture?