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 |
How does the browser enable AutoPostBack functionality?
Do cookies store passwords?
What is session mode in asp.net?
What is the request flow used for asp.net mvc framework? : asp.net mvc
What are the differences between primary foreign and unique keys?
What are the 3 levels at which content pages can be attached to Master Page?
Explain the asp.net page life cycle.
What is CTS, CLS and CLR ?
20 Answers CGI, Palm Technology, Reliable Technology, Satyam, Synergy, TCS,
what are the components available in global.asax ?
What is content place holder?
What is Virtual path in ASP.Net
RequiredFieldValidator--write code in javascript
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)