| Read configuration from Web.Config |
|
|
|
|
ASPX.CS C# - How to read configuration from Web.Config using System.Collections.Specialized; using System.Web.Configuration; public partial class Page1 : System.Web.UI.Page { ... NameValueCollection appSettings = WebConfigurationManager.AppSettings; Label1.Text = appSettings["WorkDirectory"]; ... } Web.Config <appSettings> <add key="WorkDirectory" value="C:\TEMP" /> </appSettings> |
|
| Last Updated ( Tuesday, 02 October 2007 ) |
| < Prev | Next > |
|---|




Articles 



