Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What symbol would you use to denote, the start of a code block in aspx views?

961


How to use ipostback?

1015


What is web api and why to use it?

1070


What is anonymous authentication?

1188


Give an example of cookie abuse.

1076


Is a dll file an executable?

1036


Explain the concept of MVC Scaffolding?

1024


What is content place holder?

967


What is the postback property in asp.net?

990


What are the 3 types of web?

920


Explain the advantages of caching?

1004


What are validator? Name the validation controls in asp.net? How do you disable them?

1040


Describe the application event handlers in ASP.NET?

1050


How to add DateTime Control in normal DataGrid Server Control?

1096


How to retrieve user name in case of Window Authentication?

751