Wednesday, May 27, 2009

Read From Application Configuration File C#.Net

Add App.config File Using Add New Item



Open the Configuration File and add relevant Entries.

Method 1

using System.Configuration;

String Value=ConfigurationSettings.AppSettings.Get("SampleKey1");
int SampleInt = Convert.ToInt32(ConfigurationSettings.AppSettings.Get("SampleKey2"));



Post a Comment