Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb How can we use web.config?

    How can we use web.config file? What is the use of it?

  • #2
    Codeasaurus Rex
    Join Date
    Jun 2008
    Location
    Redmond, WA
    Posts
    659
    Thanks
    31
    Thanked 100 Times in 94 Posts
    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

  • #3
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks Shane..!!!

  • #4
    New Coder
    Join Date
    Mar 2009
    Location
    UK
    Posts
    34
    Thanks
    6
    Thanked 0 Times in 0 Posts
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •