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 |
Explain the advantages of passport authentication.
What is the used of "ispostback" property?
In how many ways we can retrieve table records count?
Explain client side state management system.
Types of session management in ASP.NET?
What is the difference between ASP Session State and ASP.Net Session State?
Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?
0 Answers InfoAxon Technologies,
How to change the form layout in ASp.net 2.0 ?
About duration in caching technique ?
How can you enable impersonation in the web.config file?
Which template must you provide, in order to display data in a Repeater control?
3 Answers Siebel Systems, Wipro,
What is the difference between GridView and Repeater controls in ASP.NET?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)