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
How many types of server controls do we have?Also explain differance between them taking an example of ASP.NET?
How Session outproc in Sqlserver stored?
Where you store Connection string in "Web.Config" file in ASP.NET?
How many ways are there to maintain a state in .net? What is view state?
Mention the execution process for managed code?
What are the different types of sessions in asp.net? Name them?
what are configuration files?
What are the asp.net list controls and difference between them?
What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.
How to sign out from forms authentication?
How to create discussion forum in asp.net mvc? : Asp.Net MVC
What is data control in asp.net?
How do you create a master page?
What are the namespaces used in asp.net mvc? : asp.net mvc
What is comparevalidator?