2008/11/07

Tips: Storing data in the web.config file

You can store any string you want.
<appSettings>
  <add key="SSRS" value="http://localhost/Reports/Pages/Report.aspx" />
  <add key="FTPServer" value="ftp.myftp.com" />
</appSettings>
Here is how to use:
string strSSRS = ConfigurationManager.AppSettings["SSRS"];

No comments:

Post a Comment