hello,
I am getting an Internal server error after button click
Following is my button click code :
- $('#btnUpdatePermissionContacts').click(function () {
- var abc = '';
- $('input[type=checkbox]').each(function () {
- if (this.checked) {
- abc = abc + $(this).val() + ","
-
- $('#PermissionIds').val(abc);
- }
- });
- var formdata = new FormData();
- formdata.append("PermissionIds", jQuery("#PermissionIds").val());
- alert($("#PermissionIds").val());
- $("#LoaderOnDEP").show();
- $.ajax({
- url: '/Document/UpdatePermission',
-
- type: "POST",
- contentType: false,
- processData: false,
- data: formdata,
- dataType: 'json',
- success: function (result)
- {
- if (result.val.IsSuccess === true) {
- $DocumentListPartial.html(result.partialView);
- window.IsNew = true;
- $("#toastupdatetdmsg").html('Permission for contact(s) updated successfully.');
- toastbox('toast-updatetd');
- }
- else {
- }
- $("#LoaderOnDEP").hide();
- },
- error: function (err) {
- alert(err.statusText);
- }
- });
- });