$(document).ready(function () { alert("hello"); var request = $.ajax({ url: "http://localhost:3157/api/Products", type: "GET", dataType: "json" }); request.done(function(msg) { alert("msg is: " + msg); }); request.fail(function (jqXhr, textStatus) { alert("Request failed: " + textStatus); }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)