|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
Hi,
You have made correct assumption. It is the datagrid. set the AllowPaging property (of datagrid) to true. regards. |
|
#3
|
|||
|
|||
|
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? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > .Net Development > Paging through records |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|