$(document).ready(function () {
$("button").click(function () {
getData();
});
});
function getData() {
var promise = testAjax('example2.aspx');
displaySTSummaryData(promise);
}
function testAjax(theURL) {
var person = {
Name: 'happy',
age: '21'
};
return $.ajax({
url: theURL,
type: 'POST',
data: person
});
}
function displaySTSummaryData(x) {
x.success(function result(data) {
$("div").html(data);
});
}
In the above code I am sending data to example2.aspx. I can use only jquery aspx ajax. How can i display details of (Person (being sent ) on example2.aspx.