$('#btnDone').click(function () {
$('#uploadImage').hide();
$.ajaxFileUpload({
url: '/FileUpload.ashx',
secureuri: false,
fileElementId: "fudImage", //Input Type=file Id
dataType: "json",
contentType: "application/json; charset=utf-8",
async: false,
success: function (data, status) {
if (typeof (data.error) != 'undefined') {
if (data.error) {
alert(data.error);
} else {
}
}
},
error: function (data, status, e) {
}
});
});
Ajax