How can I read a connection string from a web.config file into a public class contained within a class library?

I’ve tried:

WebConfigurationManager

ConfigurationManager

But these classes are not recognized within my class library.

12 Answers
12

Leave a Reply

Your email address will not be published. Required fields are marked *