Sunday, October 28, 2007

Utilizing AppSettings

In web.config create a key and value:

<add key="keyName" value="keyValue" />


Access the AppSetting by calling it in your code behind:

ConfigurationManager.AppSettings.Get("keyName")

No comments: