首页  ·  知识 ·  前端
JavaScript对GridView进行上移下移保存排序
flashlm  http://www.cnblogs.com/flashlm/  综合  编辑:dezai  图片来源:网络
script type="text/javascript" language="javascript" //移动排序

      

后台代码:
private void AjaxRequest()
    {
        string ID = Request["ID"].ToString();
        string VL = Request["VL"].ToString();
        string[] IndexID = ID.Split(',');
        string[] IndexValue = VL.Split(',');
        bool test = true;
        for (int i = 1; i < IndexID.Length; i++)
        {
            if (!new FCD_Lesson().Updata_LessonTaxis(Convert.ToInt32(IndexValue[i - 1].ToString()), Convert.ToInt32(IndexID[i - 1].ToString())))
            {
                test = false;
                break;
            }
        }
        if(test)
            Response.Write("1");
        else
            Response.Write("0");
        Response.Flush();
        Response.End();
    }

本文作者:flashlm 来源:http://www.cnblogs.com/flashlm/
CIO之家 www.ciozj.com 微信公众号:imciow
    >>频道首页  >>网站首页   纠错  >>投诉
版权声明:CIO之家尊重行业规范,每篇文章都注明有明确的作者和来源;CIO之家的原创文章,请转载时务必注明文章作者和来源;
延伸阅读