Can we use the exist connection string when create dataset

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I use vs2005. I wnat to create a dataset in design time.
I have a connection string in web.config.
At the first step of DataAdapter wizard, it prompt me to enter a new
connection, At the last step, it prompt me to store the conneciton string in
application config file.

I can find how to use the exist connection string in web.config.

How can I use the exist connection string when create dataset?
 
Hi,

Not sure what your problem is, but if you want to use any setting from the
config file you can do so using System.Configuration.ConfigurationSettings
class , take a look at the AppSettings property.


Cheers,
 
Back
Top