Sometime we need to add custom tags or key in web.config. It is easy to add key in <appSettings> and easy to access fromc# code.
web.config looks like that:
<appSettings>
<add key=”Name” value=”Ashrafur Rahaman”/>
<add key=”Address” value=”Kuala Lumpur, Malaysia” />
<add key=”Contact” value=”faisal10dec@gmail.com” />
</appSettings>
c# code for access key value:
using System.Collections.Specialized;
using System.Configuration;
NameValueCollection sAll = ConfigurationManager.AppSettings;
foreach (string s in sAll.AllKeys)
{
Label1.Text += “Key” + s + ” value:”+ sAll.Get(s)+”<br/>”;
}
nice example. thanks
fanciless triangulator barkpeeling caiquejee iodinophilic dardic leiodermia grayfish
Micafab India Pvt. Limited
http://www.wesleyan.edu/physics/demos/
WOW http://utenti.lycos.it/allforandrew/dpgte1.html WOW http://utenti.lycos.it/allforandrew/dpgte2.html WOW http://utenti.lycos.it/allforandrew/dpgte3.html WOW http://utenti.lycos.it/allforandrew/dpgte4.html WOW http://utenti.lycos.it/allforandrew/dpgte5.html
Thanks!,
Testing Purpose
Complimenti per l\idea della descrizione dell\appendicectomia. Davvero simpatico il sito!
Bravo!
imvu
embarq
sketchers
giochi di flipper