web.config database connection

Results 1 to 2 of 2

Thread: web.config database connection

  1. #1
    Join Date
    Dec 1969

    Default web.config database connection

    Can anyone demonstrate an actual working Access database connection string for use with a web.config file?

  2. #2
    Join Date
    Dec 1969

    Default RE: web.config database connection

    Are u asking how to specify a connection string in web.config file and later use it with VB.NET or any other language?<BR>If yes, then u can specify the conn string like this:<BR><BR>&#060;appSetting&#062;<BR> &#060;add key="DBConnStr" value="server=someserver;uid=someuid;pwd=somepwd;d atabase=somedatabase"&#062;&#060;/add&#062;<BR>&#060;/appSetting&#062;<BR>In the value attribute above u can specify the path of your access database.<BR><BR>This is just like specifying any key-value pair and then access it in code behind like<BR><BR>configurationsettings.appsettings("DBC onnStr")<BR><BR><BR>Hope this helps<BR><BR>Cheers!!!<BR>

Posting Permissions

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