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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Sep 25, 2012, 10:26 PM EDT
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
Sumit KumawatRank #4,008 · 372 reputationPosted Sep 26, 2012, 12:31 AM EDT
appSettings>
appSettings>
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Sep 26, 2012, 12:34 AM EDT