Same ConnectionString in designTime & runtime from App.Config. How?

  • Thread starter Thread starter A.Neves
  • Start date Start date
A

A.Neves

Hi,

I'd like to have my ConnectionString retrieved from the same place in
RunTime or in DesignTime (in VS2005). Is It possible? How?

Any help would be very much appreciated.

Thanks.
 
A.Neves,

If you right click on your project, you can add an application
configuration file to your executable file (if you are going to use a config
file, then this is where you need to put it). In there, you can add the
connection string (there are new sections specifically for that), and then
retrieve it through code.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top