Link to home
Start Free TrialLog in
Avatar of jackjohnson44
jackjohnson44

asked on

.net strongly typed dataset and connection string at runtime

I have a stronly typed dataset in a dll.  It currently has a hard coded connection string.  The same dll also has a class I call ApplicationSettings which loads app setting from a config file located on the network.

How can I make my dataset get it's connection string at runtime.  Is there an event for the DS?  
ASKER CERTIFIED SOLUTION
Avatar of graye
graye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jackjohnson44
jackjohnson44

ASKER

Thanks, but isn't there an easier way by overriding functions on the dataset?

I have clicked by accident before and saw a class with code behind.
I just can't figure out how to do it.
Well, sure... a "write your own" is always an option.