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

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

hi guys do u know how to go one page to one page to another page plz tell me any of u know

3 Answers  


Is asp.net and .net same?

0 Answers  


Can we add code files of different languages in app_code folder?

0 Answers  


what is stateless ?

2 Answers   TCS,


What is view state and use of it ?

1 Answers  


What are the major built-in objects in ASP.NET?

0 Answers   MindCracker,


What is the syntax for datagrid and specifying columns ?

2 Answers   Microsoft,


14. What are your Future Plans for Swatz Oils GROUP U.K?

0 Answers   CSC, Swatz Oils, TCS,


What are the advantages of the code-behind feature?

0 Answers  


How to store a dataset in a viewstate?

3 Answers   IBM,


Explain the asp.net mvc request life cycle? : asp.net mvc

0 Answers  


Give a few examples of page life cycle events.

0 Answers   Accenture,


Categories