Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 10th, 2008, 03:59 AM
Registered User
 
Join Date: Apr 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datalist with paging

hi i am working with VB with ASP.NET

Here i have datalist i have bind the images to the datalist

and i want to do paging in datalist

can anyone help ,me....

Thanks

Regards,
Venkatesan.M
 
Old July 17th, 2008, 01:10 AM
Authorized User
 
Join Date: Jan 2007
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aliirfan84
Default

Dear,

You need to do custom paging. That is:

--> Make a simple user control (or simply do on required page) which contains repeater with simple links (1, 2 ,4 ...) showing page numbers.

--> Decide max number of elements to be shown at a time (eg. 10)

--> In ur query, multiply ur page number(eg. 2) with 10 into MaxRows and get rows from MaxRows -10 to MaxRows.

There are various methods to this thing in Stored Procdeure (query). You can use ROW_NUMBER feature or whatever is available in ur DB features.


Regards,
Ali Irfan





Similar Threads
Thread Thread Starter Forum Replies Last Post
paging datalist shanwaj ASP.NET 2.0 Basics 1 March 25th, 2008 12:03 AM
Datalist Paging webnathan ASP.NET 1.0 and 1.1 Basics 3 November 19th, 2007 11:11 AM
Datalist Paging nedo_786 ASP.NET 2.0 Professional 9 September 20th, 2007 04:32 AM
How to allow paging in datalist? okboy SQL Server 2005 1 January 21st, 2007 10:08 PM
Datalist Paging in C# caitydev ASP.NET 2.0 Basics 0 March 29th, 2006 06:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.