Chapter 14 Configuration
It’s true that .NET application deployment is a lot like tailoring a suit: one size does not fit all. Fortunately, ASP.NET comes with a rich and powerful configuration system that allows us to manage application settings very closely.
This chapter will briefly cover the basics of configuration, then step through a few tricks that you can use to get the most out of your configuration efforts.
How do I store and retrieve basic settings?
ASP.NET provides the Web.config file for the storage of application settings. So how exactly do we store and retrieve simple settings using this file?
Solution
The appSettings
section of the Web.config file will be sufficient to store our configuration settings in many ...
Get The ASP.NET 2.0 Anthology now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.