/ Published in: C#

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<configuration> <appSettings> <add key="websiteName" value="My New Website"/> </appSettings> Then, to use it, be sure to import: using System.Configuration And in the body: System.Configuration.ConfigurationManager.AppSettings["websiteName"]; OR, in web form, just use Expression syntax: <asp:Literal Text="<%$AppSettings: websiteName %>" />
Comments
