Multiple web.config file in a project
-
while surfing on internet I found, we can use multiple web.config files in a project. So I want to know how it will work. Which web.config file will refer. Plz give example
-
while surfing on internet I found, we can use multiple web.config files in a project. So I want to know how it will work. Which web.config file will refer. Plz give example
-
while surfing on internet I found, we can use multiple web.config files in a project. So I want to know how it will work. Which web.config file will refer. Plz give example
I would recommend against it unless you need to. You can't have multiples in the same folder for obvious reasons but sometimes you may want to overwrite a setting in the parent web.config in a subfolder. You may want to research web.config inheritance or better yet, just avoid doing it.
There are only 10 types of people in the world, those who understand binary and those who don't.
-
while surfing on internet I found, we can use multiple web.config files in a project. So I want to know how it will work. Which web.config file will refer. Plz give example
The root web.config will come first. then if you want to override the settings then you can have more web config in specific folder(View/WebPage folder). if any folder does not have the 2nd web.config then root settings will be affected for your request.
-
while surfing on internet I found, we can use multiple web.config files in a project. So I want to know how it will work. Which web.config file will refer. Plz give example
First of All this is my first if any mistake or wrong message forgive me. coming to Answer, of course we can used the multiple web.config in asp .net web project. Suppose in my project fifty Pages(50), some page are Access only Admin and Some Page access Valid user like that we can used our account information in Code project Account and some are access every user like that About Us page,Login page and So on.My project Pages are divided three parts and Make a Three Folder in Project like name "Admin","Valid User" and Every user. In Admin Folder Add Web.config and Edit the Web.config some change are
<authorization>
<allow users="*" roles="admin"/>
<deny users="?"/></authorization>
after than save this web.config.This step are do every folder and save project. I hope my Bit information try solve your problem.