Saturday, December 18, 2010

Configsource

A collegua of me sent a while ago a link about ConfigSource. I think this is an easy way for dividing the web.config is some logical parts. So I am goiing to use this in my (private) projects. Unfortunately the external file must be in a relative physical path to the application because of security reasons.


Update:The attribute configSource works only for a complete section and NOT for a single ConfigurationElement.

Monday, December 6, 2010

ToOADate

For a couple of my hobby web sites I use an Access database. When I upgrade these website to ASP.NET 4.0 Framework I have had also to update some calls to the database for the DateTime columns, I have to use the ToOADate() method.