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 |
why we are using delegates and in which condition it is required?
What is advantage of viewstate and what are benefits ?
What is the difference between system.stringbuilder and system.string
Why does my asp.net file have multiple tag with runat=server?
What are the various types of validation controls provided by asp.net?
what are configuration files?
Differentiate session and cookie
What are the elements of a website?
When cookie will expire?
Code for updating the database by entering the data into textboxes in aspx form?
Which asp.net objects encapsulate the state of the client and the browser?
What is the difference between mechine.config and web.config?