c# - DataPager jump back to first pages -


I have a strange problem that I do not understand about DotPeger. After changing the page set (pages 6 - 10 for example), and clicking on any page (6, 7, 8, 9 or 10), it will transmit the first group of pages coming back from 1.

Let me explain an ASP with the app Aap and Dotpiger. Is the net page.

& lt; Asp: ListView ... DataSourceId = "EntityDataSource" DataKeyNames = "id" & gt; & Lt; LayoutTemplate & gt; & Lt; ASP: Datapiger Runat = "Server" id = "Datapageer 1" PageSize = "15" & gt; & Lt; Fields & gt; & Lt; Asp: Next PurposePagerfieldFirstPageXT = "& amp; LT; & amp; lt;" ShowFirstPageButton = "True" ShowNextPageButton = "False" before appearing Button = "False" /> & Lt; ASP: Numeric Pagefield / & gt; & Lt; ASP: Next changePagerfilled final pagetext = "& amp; g; & g;" ShowLastPageButton = "True" ShowNextPageButton = "False" ShowPreviousPageButton = "False" /> & Lt; / Fields & gt; & Lt; / ASP: DataPager & gt; & Lt; / LayoutTemplate & gt; & Lt; / ASP: ListView & gt;

To update the data, I do datebind during the prerenders.

  Protected Override Zero On-Render (EventEurge E) {lstview1.DataBind (); Base.OnPreRender (E); }  

All this works, but the problem is that during the postback, during postback, it will not be remembered.

From the first request of the page, pages show:

& lt; & Lt; By clicking on 1 2 3 4 5 ... >>

..., the next set of pages will be displayed (and the page 6's data will also be shown)

& lt ; & Lt; ... 6 7 8 9 10 ... >>

But when I click on pages 7 through 10, the text of pages will display the first group of pages 1-5.

Can anyone explain why this happens? Miss I something? Thank you.

You are creating the database in the wrong place. I think paging resets if you type lstview1.DataBind (); ?

you can not do this work: For example, you can see this page:


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -