Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > DataList - Bind 5 records at a time from SQL Server ?

Reply
Thread Tools

DataList - Bind 5 records at a time from SQL Server ?

 
 
Elliot Cohen
Guest
Posts: n/a
 
      11-27-2003
I would like to retrieve 5 records (of products) at a
time from an SQL Server database and display them in an
ASPataList control (or possibly an ASP:Repeater
control). I only want to display 5 records at a time on
each web page. The user will be able to see more products
by navigating to the next 5 items etc in a similar way to
how users navigate on search engine results. The user
will also be able to select which order the items will be
displayed in according to different criteria (model
number, price etc.).

My main problem is, what is the most efficient way to
obtain records n to n+5 and bind them to a datalist
control? Ideally I would like to write a stored procedure
to extract just those records and then I will attach them
to a DataReader object which I could then bind to the
DataList control. But how can I obtain just those 5
records?

TIA
Elliot Cohen
Messorah Software

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help. Getting a An error has occurred while establishing a connectionto the server. When connecting to SQL Server 2005, this failure may be causedby the fact that under the default settings SQL Server does not allow remote aboutjav.com@gmail.com ASP .Net 0 05-03-2008 12:43 PM
How do you bind a datalist that is inside a bound datalist =?Utf-8?B?QVNQIERldmVsb3Blcg==?= ASP .Net 2 09-26-2006 02:18 AM
Setting up a datalist control - Item_DataBound for a datalist in a datalist Nevyn Twyll ASP .Net 8 09-09-2004 10:13 PM
Delete records or update records Dan ASP General 1 05-10-2004 01:25 PM
match muliple header records to associated detail records Luke Airig XML 0 12-31-2003 12:06 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57