$.ajax({ cache: false, type: "POST", url: '<%= Page.ResolveUrl("~/Live/Live.aspx/GetViews") %>', content: "json", contentType: "application/json; charset=utf-8", data: "{ 'Altid' : '" + GetAltId() + "' }", success: function (msg) { $("#backEndCount").text(msg.d); }, fail: function (msg) { $("#backEndCount").text(msg.d); } });
[WebMethod] public static string GetViews(int Altid) { return Live.count(Altid); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)