protected void btnUpdate_Click(object sender, EventArgs e)
 {
     ////保存修改到数据库
     LineInfoDal lineinfoDal = new LineInfoDal();
     lineinfoDal.Save(txtLineCode.Text, ddlStatus.SelectedValue);
     JScript.Instance.ShowMessage(UpdatePanel1, "保存数据成功。");
 }
    private void BindData()
    {
        pager.PageSize = PagingSize;

        LineInfoDal lineinfoDal = new LineInfoDal();
        string filter = null;
        if (ViewState["Filter"] != null)
            filter = ViewState["Filter"].ToString();
        pager.RecordCount = lineinfoDal.GetCount(filter);
        DataTable table = lineinfoDal.GetAll(pageIndex, PagingSize, filter);
        BindTable2GridView(gvMain, table);
    }