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…
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
Line 8: Product
Line 10: <%= Html.Select("SoftwareID", (object)ViewData["SoftwareList"], "Name", "ID", (object)ViewData["SoftwareID"]) %>
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”
That was my post 🙂
Thanks for making sure I didn’t miss it!
Pete, have a look at this forum post.
It really has been replaced with DropDownList and ListBox.
I think Html.Select is an extension method available from MvcContrib.
You can try to use DropDownList instead.
ViewData[“SoftwareList”] = new SelectList(
The view is very simple:
<%= Html.DropDownList(“SoftwareList”) %>