ASP.Net Rocks!
Monday, February 14, 2011
Using ConfigurationManager.AppSettings
Step 1
======
Add a reference to assembly
Step 2
======
Add this before the class header
using System.Configuration;
Step 3
======
Access the configuration setting using this code:
System.Configuration.ConfigurationManager.AppSettings["WebMasterEmail"]
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment