Questions tagged [datapager]

Provides paging functionality for data-bound controls that implement the IPageableItemContainer interface, such as the ListView control.

DataPager is a .NET class that provides paging capabilities to any Data Template control in the .NET framework. For example it can used for paging a ListView control.

183 questions
26
votes
6 answers

ASP.Net : DataPager Control always a step behind with paging

Take the following example...a page with a ListView and a DataPager used for paging the data of the ListView: Code Behind: protected void Page_Load(object sender, EventArgs e) { MyList.DataSource = GetSomeList(); …
Andreas Grech
  • 105,982
  • 98
  • 297
  • 360
13
votes
3 answers

How do I use a DataPager with Server Side Paging?

I'm trying to use a DataPager to do Server Side paging. Here is my code Code…
John
  • 3,332
  • 5
  • 33
  • 55
13
votes
3 answers

Silverlight, DataPager, RIA Services, and smart paging

I'm still trying to get my feet on the ground with Silverlight and RIA Services, and of course starting with some of the more "fun" stuff like grids and intelligent paging. I can connect to RIA Services (using a home-grown ORM, not L2S or EF), get…
Cylon Cat
  • 7,111
  • 2
  • 25
  • 33
13
votes
4 answers

Formatting an asp:DataPager to show in ul li

I am building a website using the Twitter Bootstrap and ASP.Net C# Webforms. I have a ListView on my page with a DataPager bound to it, but I need to change the way .Net renders the HTML of the DataPager. Currently, all pager items are displaying…
Chris
  • 143
  • 1
  • 1
  • 9
6
votes
2 answers

Customize ASP.Net DataPager generated HTML

I am using a ListView and DataPager in my web project for pagination. It works fine, but the generated HTML for the pagination is simply a span containing some hyperlinks. I wanted to customize the HTML and display the links in an unordered list…
Donnie Thomas
  • 3,888
  • 8
  • 47
  • 70
5
votes
3 answers

DataPager EventArgs

I'm using a DataPager control in my silverlight application. I have different pagers for different DataGrids and want to use the same event handler for the PageIndexChanged event for all of them. The delegate must take an EventArgs object as an…
PhilBrown
  • 2,949
  • 7
  • 34
  • 53
4
votes
1 answer

Applying CSS styles to Asp.Net DataPager Next/Previous Buttons

If I have the folling data pager
LiamB
  • 18,243
  • 19
  • 75
  • 116
4
votes
2 answers

DataPager ceases to work when PageSize is set in code

I have a standard ASP.Net DataPager with a standard ListView (using a DataTable as a data source). When I set PageSize="24" in the design code:
user32826
3
votes
2 answers

Set PageIndex of DataPager

I have a ListView that I am paging with a DataPager. I would like to set the initial page of the pager on Page_Load. I have tried the DataPager.SetPageProperties method but it's not doing what I need. Here's how I'm calling this…
DougCouto
  • 530
  • 1
  • 3
  • 18
3
votes
1 answer

How to perform server-side pagination by using a GridView and a DataPager in Asp.net 3.5?

I have a webform which uses a gridview control to show result of a search operation. I wanna to take advantage of using pagination in the webform. But as you all know, gridview pagination is a client-side pagination and it transfers all records have…
odiseh
  • 25,407
  • 33
  • 108
  • 151
3
votes
1 answer

How to generate a ListView and DataPager dynamically from code behind?

I got a dataset which contains news items. Each news items contains elements like: id, title, briefDesc, fullDesc, imgUrl, dateCreated, etc. I want to show them in a list using a ListView and DataPager, but don't know how to created the ListView and…
Kardo
  • 1,658
  • 4
  • 32
  • 52
3
votes
1 answer

get active number page in DataPager

i have LinkButton inside ListView control, i want get active number page in DataPager with click on LinkButton. protected void addToCart_Click(object sender, CommandEventArgs e) { //get active number page } please help me.
Babak Saeedi
  • 157
  • 4
  • 14
3
votes
1 answer

ASP.NET DataPager not preserve the QueryString parameters order

I've a ListView with a DataPager the paging in the buttons (1,2,3,...) do not preserve the order of the parameters in querystring which is a bad thing in an SEO context (the bot thinks it is duplicate content). I.E. if my page…
arik
  • 338
  • 1
  • 16
3
votes
1 answer

How can I display the same DataPager control in two places on a page at the same time?

I have a DataPager control that looks like this:
Karl
  • 6,793
  • 3
  • 23
  • 21
2
votes
2 answers

Remember pagination when returning to page with ListView/DataPager

I have a simple ListView paged by a DataPager giving a list of products. When we click on the product we open the product details page. On the details page we want to "return to product list" but of course we want it to remember what page the…
Etherman
  • 1,777
  • 1
  • 21
  • 34
1
2 3
12 13