public static void IncrementViews(Int32 photoK, ServiceVoidWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout) { Dictionary<string, object> p = new Dictionary<string, object>(); p["photoK"] = photoK; jQueryAjaxOptions o = WebServiceHelper.Options( "IncrementViews", "/WebServices/Controls/PhotoControl/Service.asmx", p, failure, userContext, timeout); o.Success = delegate(object data, string textStatus, jQueryXmlHttpRequest request) { success((object)((Dictionary<string, object>)data)["d"], userContext, "IncrementViews"); }; jQuery.Ajax(o); }
public static void SetThreadUsr(Int32 threadK, Int32 page, ServiceVoidWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout) { Dictionary<string, object> p = new Dictionary<string, object>(); p["threadK"] = threadK; p["page"] = page; jQueryAjaxOptions o = WebServiceHelper.Options( "SetThreadUsr", "/WebServices/Controls/CommentsDisplay/Service.asmx", p, failure, userContext, timeout); o.Success = delegate(object data, string textStatus, jQueryXmlHttpRequest request) { success((object)((Dictionary<string, object>)data)["d"], userContext, "SetThreadUsr"); }; jQuery.Ajax(o); }
public static void SetAsCompetitionGroupPhoto(Int32 photoK, Boolean isCompetitionPhoto, ServiceVoidWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout) { Dictionary<string, object> p = new Dictionary<string, object>(); p["photoK"] = photoK; p["isCompetitionPhoto"] = isCompetitionPhoto; jQueryAjaxOptions o = WebServiceHelper.Options( "SetAsCompetitionGroupPhoto", "/WebServices/Controls/PhotoControl/Service.asmx", p, failure, userContext, timeout); o.Success = delegate(object data, string textStatus, jQueryXmlHttpRequest request) { success((object)((Dictionary<string, object>)data)["d"], userContext, "SetAsCompetitionGroupPhoto"); }; jQuery.Ajax(o); }