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


Please Help Members By Posting Answers For Below Questions

Which method is used to perform all validation at the page level?

540


What is the use of service provider?

590


What is GAC in ASP.NET 2.0

591


What is viewstate in asp net with example?

527


what is silver light when will we use silver light,

1445






What is cookies in asp net?

525


What is an asp.net validator? And, mention its types.

592


witch is the best insistute in sharpoint course.what abt future of share point course.

2556


What are web beacons used for?

550


Explain diff. Betn dataset and recordset?

554


Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?

557


What are the navigation ways between pages available in ASP.NET?

573


How ASP and ASP.NET page works? Explain about asp.net page life cycle?

593


Can you use c# without .net?

552


What are the advantages of asp.net?

546