$('#partialcontroldiv').load('@Url.Content("~/ControlerName/ActionName")?id=' + id, '', function () { //below lines to reapply dataannotation validation on partial view $('form').removeData("validator"); $("form").removeData("unobtrusiveValidation"); $.validator.unobtrusive.parse(document); });
No comments:
Post a Comment