Setting Value in Web.Config

in Web.Config file,
 
<appSettings>
        <add key="yourkey" value="yourvalue"/>
</appSettings>

in c#

string getVal = ConfigurationManager.AppSettings["yourkey"].ToString();

Now we get  the "yourvalue" in string-getVal