I had the following piece of code in a web app running on ASP.NET MVC Beta:
<%= Html.DropDownList("Instances", new { style="width:270px;", onchange = "UpdateReport(this)" }) %>
where "Instances" is a SelectList stored in ViewData, like so:
ViewData["Instances"] = new SelectList(instanceList, "Id", "ClientName", report.SelectedId);
After upgrading to MVC RC1, I get the following error in the DropDownList:
CS1928: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'DropDownList' and the best extension method overload 'System.Web.Mvc.Html.SelectExtensions.DropDownList(System.Web.Mvc.HtmlHelper, string, string)' has some invalid arguments
I've updated my references to point to the correct (new) Mvc Dll's, and I've also updated Microsoft.Web.Mvc.dll to the RC MVC Futures dll from codeplex.
Can anyone help?