沉了一个,继续提问aspnetpager分页 如果将datalist与aspnetpager控件绑定?即达到点aspnetpager索引页,就到datalist相关页面的需要!最好举个例子,别一两句话就说完了,得到答案马上给分,不够再加! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 private void AspNetPager1_PageChanged(object src, WFNetCtrl.PageChangedEventArgs e) { this.DataGrid1.CurrentPageIndex=e.NewPageIndex-1; AspNetPager1.CurrentPageIndex=e.NewPageIndex; if(ViewState["DataSet"]!=null) { AddTemp(); this.DataGrid1.DataSource=ViewState["DataSet"] as DataSet; this.DataGrid1.DataBind(); } }private void DataBind1(){ string SqlStr="select...."; Ds1=inc.SqlHelper.Query(SqlStr); ViewState["DataSet"]=Ds1; AspNetPager1.CurrentPageIndex=1; AspNetPager1.PageSize=12; AspNetPager1.RecordCount=Ds1.Tables[0].Rows.Count; this.DataGrid1.CurrentPageIndex=0; this.DataGrid1.DataSource=Ds1; this.DataGrid1.DataBind();} .NET存储过程的代码 网页怎么显示word文档 反射与直接调用时的性能问题 文章内容检索,返回关键字所在的段落 请问下关于gridview的一点问题。。。 在asp.net中怎么实现工作流图 模式对话框的返回值的问题,急..... aspx文件运行时出现如下错误,不知道什么原因 在.net里怎样用shtml技术? ASP.NET网站突然出现问题,求助 我的程序里莫名其妙多了这些代码,什么意思啊,帮忙看看! 一页面值传递给多个页面的问题
private void AspNetPager1_PageChanged(object src, WFNetCtrl.PageChangedEventArgs e)
{
this.DataGrid1.CurrentPageIndex=e.NewPageIndex-1;
AspNetPager1.CurrentPageIndex=e.NewPageIndex;
if(ViewState["DataSet"]!=null)
{
AddTemp();
this.DataGrid1.DataSource=ViewState["DataSet"] as DataSet;
this.DataGrid1.DataBind();
}
}private void DataBind1()
{
string SqlStr="select....";
Ds1=inc.SqlHelper.Query(SqlStr);
ViewState["DataSet"]=Ds1;
AspNetPager1.CurrentPageIndex=1;
AspNetPager1.PageSize=12;
AspNetPager1.RecordCount=Ds1.Tables[0].Rows.Count;
this.DataGrid1.CurrentPageIndex=0;
this.DataGrid1.DataSource=Ds1;
this.DataGrid1.DataBind();}