What is the use of location tag in web.config file

Answers were Sorted based on User's Feedback



What is the use of location tag in web.config file..

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

What is the use of location tag in web.config file..

Answer / ajitabh

To prevent the pages from security we use location tag

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Explain the main differences between asp and asp.net?

0 Answers  


# What is the transport protocol you use to call a Web service?

1 Answers  


What r the remotable objects. and how u make an application remotable

1 Answers  


How to use class library reference in asp.net project? Can you give me the example with source Class library haves classes like Database, insert, update, delete, reflection how can i use the database class connection in insert class to insert the record in to the Main Project in asp.net.

1 Answers  


Is there any property names “isnavigating”?

0 Answers  


Define an assembly?

9 Answers   Siebel,


How to use one project files into another project?

4 Answers   HP,


Explain how cookies work.

0 Answers  


What does the hotspot class in .net do?

0 Answers  


What is the parent class of all the web server control?

0 Answers  


I have one application, one user purchase some products in my application? and another person came he is also purchase some products?how can we identify which user purchase which items? my answer is by using session id? but i dont know how? can u give me programming for that?

1 Answers  


What is the advantage of using Windows authentication in a Web application?

0 Answers   MCN Solutions,


Categories