MVC parameter binding

Here’s a piece of information that will hopefully save you the time I spent on trying to figure it out… asp.net mvc parameter binding is localizable ONLY in the case of POST form action. So if you’re trying to bind a date time, and have globalization turned on in web.config, then you need to parse the parameter yourself. The parameter needs to be of type string, because making …

By on (tags: mvc, categories: code)

Error connecting to localdb after .mdf and .ldf files are deleted.

Localdb database is very flexible and comfortable to use. Although its purpose is rather to serve a development database storage, its also possible to use it in a production. Unfortunately using it in, for instance, Click-Once deployed application generates some strange problems. One of those mystery problems I faced recently. Using localdb in production has some limitations. F…

By Mirek on (tags: localdb, categories: infrastructure)