Hi all,
We just upgraded from TCP 4 to RC 2 of the MVC framework for .net. The following code, which worked, now just does a regular post (ie. navigates to the create page):
<% using (Ajax.BeginForm("Create", "LEEDBoardItem", new AjaxOptions() { UpdateTargetId = "LEEDBoardDisplay", HttpMethod = "POST" })) { %> <%= Html.Hidden("Selling_Color_Name", ViewData.Model.SelectedColor == null ? "" : ViewData.Model.SelectedColor.SellingColorName) %> <%= Html.Hidden("Selling_Color_Number", ViewData.Model.SelectedColor == null ? "" : ViewData.Model.SelectedColor.SellingColorNumber) %> <%= Html.Hidden("Selling_Style_Name", ViewData.Model.Style_Name) %> <%= Html.Hidden("Selling_Style_Number", ViewData.Model.Style_Number) %> <%= Html.AntiForgeryToken() %> <% Html.RenderPartial("~/Views/LEEDBoardItem/Form.ascx", new LEEDBoardItem());%> <input type="submit" value="New" /> <% } %>
Anyone have similar problems with RC2? I can switch to an ActionLink, but I'd rather use a form post.
Thanks! Brian