Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-31-2012, 11:19 AM   PM User | #1
andrewneil
New to the CF scene

 
Join Date: Oct 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
andrewneil is an unknown quantity at this point
Lightbulb How can we use web.config?

How can we use web.config file? What is the use of it?
andrewneil is offline   Reply With Quote
Old 11-01-2012, 02:14 AM   PM User | #2
ShaneC
Codeasaurus Rex


 
Join Date: Jun 2008
Location: Redmond, WA
Posts: 659
Thanks: 31
Thanked 100 Times in 94 Posts
ShaneC is on a distinguished road
The web.config file is the main configuration file for your ASP.NET application. It will contain settings such as Database connection strings, general application settings, and the like.

If you have a specific question or something you're having trouble with, please make a detailed post including what you're trying to do, as well as what you've already tried.

For all other information, here's the Wikipedia page for Web.config.
__________________
Unless otherwise stated, any code posted is most likely untested and may contain syntax errors.
My posts, comments, code, and suggestions reflect only my personal views.
Web Portfolio and Code Snippets: http://shanechism.com
ShaneC is offline   Reply With Quote
Old 11-24-2012, 11:24 AM   PM User | #3
andrewneil
New to the CF scene

 
Join Date: Oct 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
andrewneil is an unknown quantity at this point
Thanks Shane..!!!
andrewneil is offline   Reply With Quote
Old 11-24-2012, 08:30 PM   PM User | #4
j4v3d
New Coder

 
Join Date: Mar 2009
Location: UK
Posts: 34
Thanks: 6
Thanked 0 Times in 0 Posts
j4v3d is an unknown quantity at this point
if you use the web.config file correctly then you can do all sorts - developing a website/application you can set values in your web.config and then call that value from the code behind of your website using the web configuration manager - so if you have a URL for example to your Facebook page you can set it in web.config and then call it on code behind or something like that. Compile and publish - if the URL changes you just change it in the web.config

If you require any more information have a look at the link posted above - if still you have any questions dont hesitate to ask.

Are you a newbie to ASP.NET?
__________________
MJCoder
Twitter
j4v3d is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:38 AM.


Advertisement
Log in to turn off these ads.