Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 How and where to store more than 1 web.config file

Author  Topic 

sheena
Starting Member

45 Posts

Posted - 2007-04-29 : 01:10:46
Hello frdz,

I m working under web applications of ASP.NET 2005.

I want to use for than one web-config file for the forms.
I want to know where can i add the extra web.config in my proj.

Already 1 file is present in proj after debugging.I want to use the web.config file for e.g. only for one form like login then to where store the web.config ??
Is it need to create any separeate folder ??

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-04-29 : 10:26:04
you only need one web,config per project.
just put everything in there.

i don't quite understand why would you need more than 1 config file in your situation.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

leoiser
Starting Member

20 Posts

Posted - 2007-05-07 : 06:37:18
hi sheena,
You can create more than one webconfig file,but it should be diffrent folder, so whatever .aspx files in that folder will follows the setting in the current folder's webconfig.

Thanks
Go to Top of Page

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2007-05-07 : 07:27:02
Yes First it will take search the value in the local webconfig file(which is in the folder) and after that it will search for the value in the global config file.


Chirag

http://chirikworld.blogspot.com/
Go to Top of Page
   

- Advertisement -