O'Reilly logo

The ASP.NET 2.0 Anthology by Phil Haack, Jon Galloway, Wyatt Barnett, Jeff Atwood, Scott Allen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required