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
Which method is used to perform all validation at the page level?
What is the use of service provider?
What is GAC in ASP.NET 2.0
What is viewstate in asp net with example?
what is silver light when will we use silver light,
What is cookies in asp net?
What is an asp.net validator? And, mention its types.
witch is the best insistute in sharpoint course.what abt future of share point course.
What are web beacons used for?
Explain diff. Betn dataset and recordset?
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?
What are the navigation ways between pages available in ASP.NET?
How ASP and ASP.NET page works? Explain about asp.net page life cycle?
Can you use c# without .net?
What are the advantages of asp.net?