dc

dc

  • NA
  • 663
  • 0

C# obtain connection string data from app.config file

Jun 25 2013 12:20 AM
I have a C# 2010 desktop application that has its own app.config file. This application calls a dll that has its own app.config file. I want to be able to access the database connection string information that is in the app.config file located in the dll file.

Thus can you tell me how to access the database connection string located in the app.config file of the dll?

Can I access this database connection information from the app.config file of the C# 2010 desktop application?

Can you show me code on how to accomplish my goal?

Answers (1)