var
urlJSON =
'<%=ResolveUrl("example.json") %>'
;
$(document).ready(
function
() {
$(
'#btnLoad'
).click(
$.ajax({
url: urlJSON,
dataType:
"json"
,
type:
"POST"
contentType:
"application/json;charset=utf-8"
success: AjaxSucceeded,
error: AjaxFailed
});
AjaxSucceeded(result) {
alert(result.d);
}
AjaxFailed(result) {
alert(result.status +
' '
+ result.statusText);