Paging

H

hoz

Hi ,
I use a procedure to get list of all users and show them in a
datagrid/datalist/etc.. with SqlDataReader . How can i list X item (lets
say 50) on the first page , 2. 50 on second page and so on
 
S

Scott Mitchell [MVP]

hoz said:
I use a procedure to get list of all users and show them in a
datagrid/datalist/etc.. with SqlDataReader . How can i list X item (lets
say 50) on the first page , 2. 50 on second page and so on

Hoz, see:

An Extensive Examination of the DataGrid Web Control: Part 15
http://aspnet.4guysfromrolla.com/articles/070903-1.aspx

It looks at how to implement Default paging in a DataGrid. I discuss
how to implement custom paging in my book, ASP.NET Data Web Controls
Kick Start [http://www.4guysfromrolla.com/ASPScripts/Goto.asp?ID=148]

Happy Programming!

--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com

* When you think ASP.NET, think 4GuysFromRolla.com!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top