Typed datasets in a class library referenced by an ASP.NET project

G

Guest

The connection string used by the typed dataset that is in the Class library
is placed in the Settings and then accessed using the generated code.

What is the best approach for having the actual connectionstring details
externalised when this class library is referenced from a web application?
Currently all that happens is that the default value is used and NOT the one
specified in the app.config.. have trawled the net and seen lots of comments
about moving stuff into the web.config but for the connection strings this
doesn't seem t work and the only solution I have found out there is to modify
the generated code int the class library which can't be a good idea...

Does anyone have an approach for this that actually makes sense?
 

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

Members online

No members online now.

Forum statistics

Threads
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top