The Passionate Programmer
Showing posts with label
AppSettings
.
Show all posts
Showing posts with label
AppSettings
.
Show all posts
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
Older Posts
Home
Subscribe to:
Comments (Atom)