コード例 #1
0
 protected void btnUpdate_Click(object sender, EventArgs e)
 {
     //保存修改到数据库
     RouteDal routeDal = new RouteDal();
     routeDal.Save(txtSortID.Text,txtLineCode.Text, txtRouteCode.Text);
     JScript.Instance.ShowMessage(UpdatePanel1, "保存数据成功。");
 }
コード例 #2
0
    private void BindData()
    {
        pager.PageSize = PagingSize;

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