AspNetPager控件问题
IList<MyNote> list = MyNoteManager.GetAllMyNoteByUserId(((Session["CurrentUser"]) as UserInfo).UserId);
PagedDataSource pdsList = new PagedDataSource();
pdsList.DataSource = list;
pdsList.AllowServerPaging = true;
pdsList.PageSize = this.anpList.PageSize;//anpLis是tAspNetPage的id
pdsList.CurrentPageIndex = anpList.CurrentPageIndex - 1;
this.anpList.RecordCount = MyNoteManager.GetAllMyNoteByUserId(((Session["CurrentUser"]) as UserInfo).UserId).Count;//调试的时候有数据的
this.dlMyNote.DataSource = pdsList;
this.dlMyNote.DataBind();
在页面显示的时候aspnetpage 控件运用后可以分页 但是下一页之后数据还是和前一页相同
这是怎么回事?????