This question is locked. New answers and comments are not allowed.
Good afternoon,
In order to get Ajax.BeginForm working properly I had to make the following changes:
1. Reference the Modernizr scripts
2. Add 'jQuery(false)' to the script registrar
3. Reference "~/Scripts/jquery.unobtrusive-ajax.js" from my view
Since I did this I can't get the upload control to work synchronously. With the steps applied as above the 'IEnumerable<HttpPostedFileBase>' parameter passed to the controller is null. If I don't reference 'jquery.unobtrusive-ajax.js' the ajax.beginform submit refreshes the entire form, not just the target div.
Please advise?
Thanks!
In order to get Ajax.BeginForm working properly I had to make the following changes:
1. Reference the Modernizr scripts
2. Add 'jQuery(false)' to the script registrar
3. Reference "~/Scripts/jquery.unobtrusive-ajax.js" from my view
Since I did this I can't get the upload control to work synchronously. With the steps applied as above the 'IEnumerable<HttpPostedFileBase>' parameter passed to the controller is null. If I don't reference 'jquery.unobtrusive-ajax.js' the ajax.beginform submit refreshes the entire form, not just the target div.
Please advise?
Thanks!