//---------------------------------------------------------------------------------------------------- public static AjaxRequest New2(string ajaxUrl, string remoteMethod, object callback_Object, string callback_Method) { var returnInfo = new AjaxReturnInfo(); returnInfo.Callback_Object = callback_Object; returnInfo.Callback_Method = callback_Method; return(New(ajaxUrl, remoteMethod, returnInfo)); }
//---------------------------------------------------------------------------------------------------- public static AjaxReturnInfo New(object callback_Object, string callback_Method) { var rtn = new AjaxReturnInfo(); rtn.Callback_Object = callback_Object; rtn.Callback_Method = callback_Method; rtn.DataObj = null; return(rtn); }
//---------------------------------------------------------------------------------------------------- public static AjaxRequest New(string ajaxUrl, string remoteMethod, AjaxReturnInfo returnInfo) { var rtn = new AjaxRequest(); rtn.AjaxUrl = ajaxUrl; rtn.RemoteMethod = remoteMethod; rtn.ReturnInfo = returnInfo; rtn.Parameters = new object[0]; return(rtn); }