Web Config File
-
Can we have more than one Web Config file in a single Application.If yes then how do we go about the same. Thanks in advance.
-
Can we have more than one Web Config file in a single Application.If yes then how do we go about the same. Thanks in advance.
-
Actually today I gave an Interview where this question was asked,I said the same answer but the person who was taking interview said that u can do it just check it???
-
Can we have more than one Web Config file in a single Application.If yes then how do we go about the same. Thanks in advance.
We can have multiple web.config file for an application. If we divide our project into different folders, then each of the folders can have different web.config files apart from the web.config in the root. When we access pages in a particular folder, it that folder contains a web.config file, setting there will have more priority that that of the root, ie., if you override a setting of the root web.config in the folder's web.config, the latter one will be used for the pages in that particular folder. you can read this artile Using Forms Authentication in ASP.NET, Part 2
Pradipta Basu
-
Actually today I gave an Interview where this question was asked,I said the same answer but the person who was taking interview said that u can do it just check it???
Well I wouldn't have got the job either! I have never used more than one web.config file in an application. never seen the need to.
Kind Regards, Gary
My Website || My Blog || My Articles
-
We can have multiple web.config file for an application. If we divide our project into different folders, then each of the folders can have different web.config files apart from the web.config in the root. When we access pages in a particular folder, it that folder contains a web.config file, setting there will have more priority that that of the root, ie., if you override a setting of the root web.config in the folder's web.config, the latter one will be used for the pages in that particular folder. you can read this artile Using Forms Authentication in ASP.NET, Part 2
Pradipta Basu
Yes We can have more than one web.config file. But each folder can have only web.config file. Lower level takes precedence over higher ones like web.cofig takes over machine.config. But you can configure higher web.config's setting in such a way that it cant be overriden also.
Don't Quit
-
Yes We can have more than one web.config file. But each folder can have only web.config file. Lower level takes precedence over higher ones like web.cofig takes over machine.config. But you can configure higher web.config's setting in such a way that it cant be overriden also.
Don't Quit
Thanks for reply.Actually can we do it in .NET Version 1.1??
-
Can we have more than one Web Config file in a single Application.If yes then how do we go about the same. Thanks in advance.
hi, We can have more than one web.config files in the same project but we should give different names. eg First.Config Second.config
-
Thanks for reply.Actually can we do it in .NET Version 1.1??
Yes we can
Pradipta Basu