$.ajax(
{
type: "POST",
url: "Default.aspx/GetAge",
data: "{}",
contentType: "application/json; charset=uft-8",
dataType: "json",
success: function (rsp) { SetAge(rsp); },
error: function (rsp)
{
alert(rsp);
}
});
Right now it reports the following error: "Cannot locate the resource". I figure that I am specifying the url incorrectly. This javascript is in an external file located in the same directory as Default.aspx ... any thoughts?