How to call handler class(.ashx) when we click on button.
I added the following code button click event is firing but how to call the handler class. Please help me.
$(document).ready(function () {
$(".btn").click(function () {
('Handler1.ashx);
});
});
Abrar Ahmad AnsariPosted Apr 10, 2015, 3:37 AM
type: "POST",
contentType: "application/json; charset=utf-8",
url: "Handler1.ashx",
data: "{}",
dataType: "json",
success: function (data) {
response(data.d);
},
error: function (result) {
alert("Error");
}
});
});