I want to make a request to asp.net page using jQuery.get().
How should the Url format be, and how do I get the parameters which I sent with the data?
I tried like this:
$.ajax({
type: "POST",
url: "sendEmail.php",
data: "{name:'" + name + "', message:'" + msg + "', mailTo :'" + to + "' }",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function () {
$('#email_form').html("<div id='message'></div>");
$('#message').append("<p>We will be in touch soon.</p>")
.hide()
.fadeIn(1500, function () {
$('#message').append("<img id='checkmark' src='images/check.png' />");
});
});
});
but i want to make a call in asp.net.