.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 16th, 2004, 10:18 AM
m3ckon m3ckon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Sheffield UK
Posts: 69 m3ckon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 57 sec
Reputation Power: 6
Paging through records

Hi there I'm fairly new to .net but have been developing asp for years.

I am in the process of conveting one of my site's admin areas from asp to asp.net

TO view orders I pass orderid to an asp.net page

This runs 2 SQL queries: one on a table called orders which will display one record of order details. The other is on a table called orderdetails which will display several records.

I use a datareader and bind the ressults to two repeaters and all is working fine.

I want to add a scroll button to view a previous order and to view the next order if one exists. I think I should bind my buttons to a label, but I'm not 100%

Or am I better off using a datagrid now??

Please Help

M3ckon

Reply With Quote
  #2  
Old March 16th, 2004, 09:29 PM
siplnettech siplnettech is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 14 siplnettech User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi,

You have made correct assumption. It is the datagrid. set the AllowPaging property (of datagrid) to true.

regards.

Reply With Quote
  #3  
Old March 17th, 2004, 04:52 AM
m3ckon m3ckon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Sheffield UK
Posts: 69 m3ckon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 57 sec
Reputation Power: 6
OK thanks for the reply

I can get my head using the datagrid if I was just querying one table with multiple records

the problem is that I return one table with one records and another table with several records. I wish to display one record from orders and several records from order details on the same page.

I'm not sure if the datagrid will allow me to page through both tables at the same time?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > Paging through records


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT