分页控件:
用法:
代码
DataSet ds = ProSbObject.GetDataSetSBList(strWhere);
ASPNETPage1.url = GetCurrPagePath();
ASPNETPage1.Params = "&year=" + ddl_Year.SelectedValue + "&jhlb=" + ddl_PlanType.SelectedValue + "&jsly=" + ddl_technogly.SelectedValue + "&&jslyChild="+this.ddl_Childtechnogly.SelectedValue+"&xmmc="+this.txt_valProjName.Value+"";
ASPNETPage1.pagesize = Convert.ToInt32(strShowCount.ToString());
GridView1.DataSource = ASPNETPage1.databind(ds);
GridView1.DataBind();
ASPNETPage1.url = GetCurrPagePath();
ASPNETPage1.Params = "&year=" + ddl_Year.SelectedValue + "&jhlb=" + ddl_PlanType.SelectedValue + "&jsly=" + ddl_technogly.SelectedValue + "&&jslyChild="+this.ddl_Childtechnogly.SelectedValue+"&xmmc="+this.txt_valProjName.Value+"";
ASPNETPage1.pagesize = Convert.ToInt32(strShowCount.ToString());
GridView1.DataSource = ASPNETPage1.databind(ds);
GridView1.DataBind();