Read AppSettings in web.config

How to read appSettings values from web.config.

  <appSettings>

    <add key="KeyName" value="The value here"/>

  </appSettings>

 

Dim s As String = System.Configuration.ConfigurationManager.AppSettings("KeyName")

Post a comment

Comments closed