Sunday 23 June 2013

Ajax.BeginForm displaying System.Web.Mvc.Html.MvcForm on View

if you're using Ajax.BeginForm() on your view MVC view don't forget to wrap it with a using statement otherwise it will print System.Web.Mvc.Html.MvcForm which is really annoying.

so just make sure that your statement looks like this:

@using(Ajax.BegindForm(....))
{

}

No comments:

Post a Comment