Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (function.isAjax())
            {
                string result = "0";
                string action = Request.Form["action"];
                string value  = Request.Form["value"];
                switch (action)
                {
                case "UpdateOrder":    //mid1:oid2,mid2:oid1
                    if (value.Split(',').Length > 1)
                    {
                        string id1 = value.Split(',')[0];
                        string id2 = value.Split(',')[1];
                        cateBll.SwitchOrderID(id1, id2);
                        result = "1";
                    }
                    break;

                default:
                    break;
                }
                Response.Clear(); Response.Write(result); Response.Flush(); Response.End();
            }
            if (!IsPostBack)
            {
                Call.SetBreadCrumb(Master, "<li classs='active'>栏目排序管理</li>");
                MyBind();
            }
        }