Connection Strings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • masteroren
    New Member
    • Mar 2008
    • 1

    Connection Strings

    Hi,

    Where is the best way to define connection string?
    Web Config or in a cs file located in app_code.
  • kunal pawar
    Contributor
    • Oct 2007
    • 297

    #2
    in web.config, so admin can changed connection string as per requirement. and it has not need to run application

    Comment

    • malav123
      New Member
      • Feb 2008
      • 217

      #3
      HI,
      yes it's true web.config is the best way to store the connection string...
      you just have to define only once than you just have to use configuration manager and you can use the connection string as and when needed.....

      Comment

      Working...