The Passionate Programmer
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
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment