JS
function DeleteImage(path)
{
if (confirm('Are you sure to
delete this Image')) {
var Userobj =
{
}
$.ajax({
url: '/WebsiteAdmin/DeleteAssociateImage?path=' + path,
type: "POST",
contentType: false, // Not to set any content header
processData: false, // Not to process data
data: JSON.stringify(Userobj),
success: function (result) {
//Update
Extension
if (result.sMessage == "1") {
alert("Image deleted Successfully");
location.reload();