Next previous last and first

Posted by Snvrk1985 under ASP.NET on 6/26/2012 | Points: 10 | Views : 1427 | Status : [Member] | Replies : 2
i want to activate next, previous, last and first button navigation for the list view.
i kept paze size as 10.




Responses

Posted by: Sheonarayan on: 6/26/2012 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
You can use asp:DataPager control with the ListView

<asp:DataPager runat="server">

<Fields>
<asp:NextPreviousPagerField />
</Fields>
</asp:DataPager>


For more details on ListView and DataPager control visit http://www.dotnetfunda.com/articles/article1654-how-to-do-pagination-in-the-listview-using-datapager-control.aspx

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Snvrk1985, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Btrack124 on: 6/28/2012 [Member] Starter | Points: 25

Up
0
Down
Hi You can acheieve this by using a DataPager control
On Click of Next,Previou button you need to pass the LastPageIndex and PageSize as a sqlparameters to fetch the data from that record
or if you are using Linq it will be so easy refer LINQ101Examples

Thanks
http://www.alacraft.com.au/

Roland Masten

Snvrk1985, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response