Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string sername    = Request["serivename"];
            var    InputValue = Request.Form["Inputs"];
            Dictionary <string, AjaxRequest> ajaxCenter = new Dictionary <string, AjaxRequest>();

            if (ajaxCenter == null)
            {
                string         AjaxPath = GlobalConfigurationSource.RootConfigurationFilePath(GlobalConfigurationSource.GlobalAppSettings["AjaxActionCenter"]);
                AjaxActionList AjaxList = XmlHelper.XmlDeserializeFromFile <AjaxActionList>(AjaxPath, Encoding.UTF8);
                foreach (var ajax in AjaxList.AjaxAction)
                {
                    ajaxCenter.Add(ajax.AjaxName, ajax);
                }
            }
            switch (sername)
            {
            case "loginService":
                // var login = Newtonsoft.Json.JsonConvert.DeserializeObject<QueryLogin>(InputValue);
                //Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(Framework.Common.BaseWcf.CreateChannel<ServiceInterface.IAll>("UserLogin").UserLogin(login)));
                break;

            case "userCookies":
                //  Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(Framework.Common.BaseWcf.CreateChannel<ServiceInterface.IAll>("UserCookies").GetLoginCookiesInfo()));
                break;

            default:
                break;
            }
        }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     var ajaxActionList=new AjaxActionList();
     ajaxActionList.AjaxAction = new List<AjaxRequest>();
     ajaxActionList.AjaxAction.Add(new AjaxRequest { AjaxName = "e21e1", AjaxMethod = "11111111111111111111111" });
     Framework.Common.SerializationHelper.Save(ajaxActionList, "c:\\ajax.config");
 }
Example #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var ajaxActionList = new AjaxActionList();

            ajaxActionList.AjaxAction = new List <AjaxRequest>();
            ajaxActionList.AjaxAction.Add(new AjaxRequest {
                AjaxName = "e21e1", AjaxMethod = "11111111111111111111111"
            });
            Framework.Common.SerializationHelper.Save(ajaxActionList, "c:\\ajax.config");
        }