Results 1 to 3 of 3

Thread: Storing server settings

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Houston, TX
    Posts
    342

    Storing server settings

    Very new to asp.net so please excuse the newbie question.

    How do I store settings for an ASP.NET page? For instance, I want to store configuration information such as SQL server, username, password…things like that. The ASP.NET page will use those settings to login into a local SQL server.

    I don’t want to hardcode those settings in the application so I am looking for a way to store those in a file, but I want to make sure I do it right and the file is relatively secure.

    Thanks!!

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Location
    treehouse
    Posts
    106
    When you created the ASP.NET project did it include a file in your project called web.config?

    Thats where you can put all your settings under the configuration tag.

    you can create your own tags and put them there.


    Then you can call them anywhere in your project by referencing the Configuration class

    Imports System.Configuration


    I hope this helps...

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Houston, TX
    Posts
    342
    That worked. Thanks!

Posting Permissions

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



Click Here to Expand Forum to Full Width