System.Configuration.Configuration conf = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~");
int Cnt = System.Configuration.ConfigurationManager.AppSettings.Count;
string Key = "Name" + Cnt.ToString();
string Value = DateTime.Now.ToLongDateString() +
" " + DateTime.Now.ToLongTimeString();
conf.AppSettings.Settings.Add(Key, Value);
conf.Save(System.Configuration.ConfigurationSaveMode.Modified);
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Jiteendra SampathiraoPosted Aug 17, 2011, 5:01 AM
very nice .....