function SessionLogin() { $.ajax({ type: "GET", dataType: "jsonp", contentType: "application/json", async: false, url: 'http://localhost:27746/Orders.aspx/SessionLogin', success: function (msg) { }, error: function (jqXHR, textStatus, errorThrown) { alert(errorThrown); } }); }
public void SessionLogin() { HttpContext.Current.Response.ContentType = "application/json"; string qs = HttpContext.Current.Request.QueryString["callback"]; HttpContext.Current.Response.Write(qs + "( [{ \"x\": 10, \"y\": 15}] )"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)