Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

In my ConnectionString I used datasource field with Server.MapPath

But in the Web.Config I want to use database field ,

how Can I set a databse name in it & how can I define it ?

thanks

  • Moderators
Posted

You can use the same method if the file path is hard-coded, or leave the path out of the web.cofig file and do something like this...

ConfigurationSettings.AppSettings("ConnectionString") & somePathToMDB

Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...