Click here to Skip to main content
15,921,837 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
I'm new to asp.net .I want help understanding web.config editing examples ...guys I know we use web.config to store configuration data in an xml file...I'm looking for real world examples of web.config usage ...
Any Ideas ?
Posted

Google or buy a book. Really, web.config is what it says it is. It's a file you use to configure your website. No-one is going to give you a full list of things you can do with it and, realistically, getting a list makes no sense. In most cases, you will find out what you need to edit in there as you read about things you DO want to do, that require editing it. They include things like how the session is handled, email details, your own config settings, DB connection strings, etc.

ASP.NET also is a mess. If you're just starting, learn MVC, it's SO much better.
 
Share this answer
 
Comments
eng.amir.ebrahimi 6-Jun-13 17:14pm    
Thanks Christian
actually I was reading about reading and writing in web.config . for example , when we configure an SqlDataSource through that wizard, the real thing is that we are making a connecttion string to DB .write ? so why would we need to edit that connection string manually ???
And thanks for your advise about MVC .
Maciej Los 6-Jun-13 17:43pm    
+5!
Have a look here: Web.config (msdn)[^].
ASP.NET Configuration[^]
Working with Web.config Files[^]

There you'll find many useful information, but... i agree with Christian Graus (solution 1) to buy a book. I can't tell anything about MVC[^], because i'm not familiar with this.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900