I have got this simple form:
@using (Ajax.BeginForm(\"CreateProductFromAjaxForm\",\"Product\" ,
null,
new AjaxOptions() {
I faced the same issue with my project. Ajax library is not being loaded is the problem. When I checked my bundleconfig
and my layout file, it did have the include but I'm including the absolute name for ajax library like
bundles.Add(new ScriptBundle("~/bundles/jqueryajax").Include(
"~/Scripts/jquery.unobtrusive-ajax.min.js"));
My friend asked me to use the wild card instead. Surprisingly
bundles.Add(new ScriptBundle("~/bundles/jqueryajax").Include("~/Scripts/jquery.unobtrusive-ajax*"));
started including the ajax library.
Now my OnSuccess
functions are loading as expected rather than looking at the blank screen with json response on it.