strKey = System.Configuration.ConfigurationSettings.AppSettings.GetKey(i); strValue =System.Configuration.ConfigurationSettings.AppSettings[i];