Hi all,
can we write the multiple appSettings from Single App.Config File?
and then how to read values from Appsetting?
i want to save my multiple user name and password in the App.config and then access from there.
Hi all,
can we write the multiple appSettings from Single App.Config File?
and then how to read values from Appsetting?
i want to save my multiple user name and password in the App.config and then access from there.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Santhosh Kumar JayaramanPosted Sep 26, 2012, 4:34 AM
Sumit KumawatPosted Sep 26, 2012, 4:31 AM
appSettings>
appSettings>
Santhosh Kumar JayaramanPosted Sep 26, 2012, 2:26 AM
Then in the code
string UserName1 =System.Configuration.ConfigurationManager.AppSettings["UserName1"].ToString());
string UserName2 =System.Configuration.ConfigurationManager.AppSettings["UserName2"].ToString());
Like this you can call the key in the appsettings