Search code examples
c#asp.net-mvc.net-3.5entity-framework-ctp5

What is the replacement of Controller.ReadFromRequest in ASP.NET MVC?


I am attempting to update a project from ASP.NET MVC Preview 3 to Preview 5 and it seems that Controller.ReadFromRequest(string key) has been removed from the Controller class. Does anyone know of any alternatives to retrieving information based on an identifier from a form?


Solution

  • Looks like they've added controller.UpdateModel to address this issue, signature is:

    UpdateModel(object model, string[] keys)
    

    I haven't upgraded my app personally, so I'm not sure of the actual usage. I'll be interested to find out about this myself, as I'm using controller.ReadFromRequest as well.