Is Web.config’s appSettings section only capable of storing simple strings like this?
<appSettings>
<add key="OKPage" value="http://mysite.com/okpage.html" />
</appSettings>
or I can have more complex values like CDATA or nested values? If not, is this the only place in Web.config where to store custom settings? Thanks
You can make any XmlSerializable class as a setting.
I answered to the similar question here: Custom type application settings in ASP.NET
Also there is a sample project attached.
Here is an example of the settings from my config file:
Custom class for settings: