ASP MVC preview 3 released

I’m trying to upgrade from Preview 2 to Preview 3. I think the idea of having each action return an ActionResult was a good one, so far it has actually made my code slightly smaller.

What I don’t understand though is why Html.Select seems to have disappeared…

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1501: No overload for method ‘Select’ takes ‘5’ arguments

Source Error:

Line 8: Product
Line 9:
Line 10: <%= Html.Select("SoftwareID", (object)ViewData["SoftwareList"], "Name", "ID", (object)ViewData["SoftwareID"]) %>
Line 11:
Line 12:

When I go into the APX and type Html. there is no Select method listed along with the other options! Where is it?

4 thoughts on “ASP MVC preview 3 released

  1. That was my post 🙂

    Thanks for making sure I didn’t miss it!


  2. I think Html.Select is an extension method available from MvcContrib.

    You can try to use DropDownList instead.
    In controller:
    ViewData[“SoftwareList”] = new SelectList(

    The view is very simple:
    <%= Html.DropDownList(“SoftwareList”) %>

Leave a Reply

Your email address will not be published. Required fields are marked *