Quantcast
Viewing latest article 8
Browse Latest Browse All 29

Answer by Jitendra Kumar for Reading settings from app.config or web.config in .NET

Step 1: Right-click on references tab to add reference.

Step 2: Click on Assemblies tab

Step 3: Search for 'System.Configuration'

Step 4: Click OK.

Then it will work.

 string value = System.Configuration.ConfigurationManager.AppSettings["keyname"];

Viewing latest article 8
Browse Latest Browse All 29

Trending Articles