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 |
What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)?
Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?
Elaborate differentiation between ViewState and SessionState?
Difference between web user control and web custom control?
Differentiate between authentication and authorization.
What describes a query?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
Should sn.exe be used before gacutil.exe ?
2 Answers Accenture, BirlaSoft,
How to publish website
What is the result when the Web Form containing the following line is complied and executed? <asp:Button id=?thebutton? onClick=?theEvent? /> a) The button control is created; theEvent is the click event handler. b) Compiler error; the control must be set to runat=?server?. c) Compiler error; onClick is not a valid attribute. d) Runtime Exception; the control must be set to runat=?server?.
What is a PostBack ?
How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?
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)