<p>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?</p>

[{'answer_id': 36206, 'author': "Dane O'Connor", 'author_id': 1946, 'author_profile': 'https://Stackoverflow.com/users/1946', 'pm_score': 2, 'selected': False, 'text': '<p>Not sure where it went. You could roll your own extension though:</p>\n\n<p>public static class MyBindingExtensions \n{</p>\n\n<pre><code>public static T ReadFromRequest &lt; T &gt; (this Controller controller, string key) \n{\n    // Setup\n    HttpContextBase context = controller.ControllerContext.HttpContext;\n    object val = null;\n    T result = default(T);\n\n    // Gaurd\n    if (context == null)\n        return result; // no point checking request\n\n    // Bind value (check form then query string)\n    if (context.Request.Form[key] != null)\n        val = context.Request.Form[key];\n    if (val == null) \n    {\n        if (context.Request.QueryString[key] != null)\n            val = context.Request.QueryString[key];\n    }\n\n    // Cast value\n    if (val != null)\n        result = (t)val;\n\n    return result;\n}\n\n}\n</code></pre>\n'}, {'answer_id': 36209, 'author': 'matt', 'author_id': 2646, 'author_profile': 'https://Stackoverflow.com/users/2646', 'pm_score': 3, 'selected': True, 'text': "<p>Looks like they've added controller.UpdateModel to address this issue, signature is:</p>\n\n<pre><code>UpdateModel(object model, string[] keys)\n</code></pre>\n\n<p>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 <code>controller.ReadFromRequest</code> as well.</p>\n"}, {'answer_id': 43769, 'author': 'Iain Holder', 'author_id': 1122, 'author_profile': 'https://Stackoverflow.com/users/1122', 'pm_score': 0, 'selected': False, 'text': '<p>could you redo that link in something like tinyurl.com?</p>\n\n<p>I need this info too but can get that mega-link to work.</p>\n'}]
['https://Stackoverflow.com/questions/36064', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3412/']