Certain parts of ASP.NET MVC can be a real pain to test. Namely Model Binders, Action Filters and anything that relies on some magic "Context" that seems to derive from HttpContext, ControllerContext, …
jQuery Tip: Brute Force Dirty Form Detection
If you disable your "save" button on your MVC views when the page first loads and want them to be auto-enabled when any input on the form changes, you can do that with the following jQuery …
Continue Reading about jQuery Tip: Brute Force Dirty Form Detection →
No IE6 ActionFilter for ASP.NET MVC
*** Update ***: I've also created a cheap jQuery plugin for this as well. See the bottom of the post There's a lot of talk on Twitter today about IE6. I'm building a web application in my free time …
Continue Reading about No IE6 ActionFilter for ASP.NET MVC →
ASP.NET MVC REST API WINDSOR CONTROLLER FACTORY
I’m using the ASP.NET MVC REST Toolkit for a REST API I’m building for a mobile infrastructure. Long story short, it will be responsible for service hundreds of thousands (if not millions) of users …
Continue Reading about ASP.NET MVC REST API WINDSOR CONTROLLER FACTORY →
Editable Grid / List Binding in MVC2
Steve Sanderson has a great post on how to perform list binding with MVC2 and custom HTML Prefix Scoping. However, it did not demo the out of box functionality that MVC2 provides, so I’m going to do …
Continue Reading about Editable Grid / List Binding in MVC2 →
ASPNET MVC2: TempData Now Persists
In MVC1, TempData did not persist: The value of TempData persists only from one request to the next. (source) This has changed in MVC2. The TempData dictionary will not persist data until the key is …