Archive for September, 2008

Testing a new rssmix

17 Sep

We are setting up a couple of our blogs at wprj to be posted on


UpdateFrom is out of ASP.NET MVC Preview 5

11 Sep

Well I really liked the UpdateFrom method that lived in System.Web.MVC.BindingHelperExtensions.  I dug it all the way back when it was actually an extension method, but the latest version of ASP.NET MVC Preview 5 has kicked it out.  I haven't read it anywhere but microsoft seems to desire that we think of viewdata as being an extension of the model.  So now you use UpdateModel and so you switch it up by passing the form keys so that it knows what properties to update, not a name value collection.

This really isn't that big a deal as far as fixing your code.  I resolved my issues using a find and replace in visual studio using regular expressions.  For the find I used BindingHelperExtensions.UpdateFrom(({:w}), Request.Form); and for the replace I used UpdateModel(1, Request.Form.AllKeys);.  As I need to do more I will make note of what is needed to get Preview 5 rolling.

No Comments

Posted in .NET