What is the use of location tag in web.config file
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ajitabh
To prevent the pages from security we use location tag
Is This Answer Correct ? | 1 Yes | 0 No |
Name the two properties are on every validation control?
What are session variables?
What methods are fired during the page load?
7 Answers InSync Tech-Fin, Siebel Systems, Visual Soft,
What is the use of web.config? Difference between machine.config and Web.config?
What is the difference between response.redirect and server.transfer, how to choose one among the other?
How do you insert multiple rows from a grid view to database table under a single transaction?
Explain the differences between Server-side and Client-side code?
How to refresh a page in asp.net
What is http protocol and how it works?
Explain the asp.net mvc folder conventions? : asp.net mvc
Differentiate between file-based dependency and key-based dependency.
How do you do client-side validation in .net? How to disable validator control by client side javascript?