| | |
Big Repeater Question for you all
Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Sep 2007
Posts: 1,080
Reputation:
Solved Threads: 68
I have a page that a client asked me to make that consists of the following:
How would you suggest I handle this to eliminate 4 separate queries hitting the database? This is all expecting that I will use the following queries based upon the situation above:
Repeater1 = "SELECT *, (SELECT COUNT(ID) FROM Table1) As Count1, (SELECT COUNT(ID) FROM Table2) As Count2, (SELECT COUNT(ID) FROM Table3) As Count3, FROM Table4 WHERE ID=ID"
How would you suggest I tap the other repeaters along with the first, if it is possible? Please give me suggestions.. should I use a DataSet or just a DataReader? Anything will help. Thank you.
ASP.NET Syntax (Toggle Plain Text)
Repeater1 (Client Data) Label1 = Number of Records Repeater2 (More data where ClientID supplied = ClientID on the table) (Limit 4 recs) Label2 = Number of Records Repeater3 (More data where ClientID supplied = ClientID on the table) (limit 12 recs) Label3 = Number of Records Repeater4 (More data where ClientID supplied = ClientID on the table) (limit 25 recs) end repeater
Repeater1 = "SELECT *, (SELECT COUNT(ID) FROM Table1) As Count1, (SELECT COUNT(ID) FROM Table2) As Count2, (SELECT COUNT(ID) FROM Table3) As Count3, FROM Table4 WHERE ID=ID"
How would you suggest I tap the other repeaters along with the first, if it is possible? Please give me suggestions.. should I use a DataSet or just a DataReader? Anything will help. Thank you.
Last edited by SheSaidImaPregy; Nov 6th, 2007 at 5:38 pm.
![]() |
Similar Threads
- my speakers dotn play ANY sound!!!!! (USB Devices and other Peripherals)
- "Other Devices" have the Big Yellow Question Mark (Troubleshooting Dead Machines)
- VB6 Database Program (Visual Basic 4 / 5 / 6)
- Anyone have a good programes..? PlZ (C)
- My parents (Geeks' Lounge)
- No sound (Windows 95 / 98 / Me)
- Just bought an assembly book and having problems with basic stuff. (Assembly)
- creating a window based dialog (C++)
- Video Controller Problem (Windows NT / 2000 / XP)
Other Threads in the ASP.NET Forum
- Previous Thread: plz solve my problem of master pages
- Next Thread: background-color:"9E0039" works in IE but not mozilla, solution?
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer c# c#gridviewcolumn cac checkbox commonfunctions compatible confirmationcodegeneration content contenttype courier css dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist development dgv dropdownlist dropdownmenu dynamically edit fileuploader fill flash flv formatdecimal forms formview gridview gudi homeedition iframe iis javascript jquery listbox menu microsoft mono mouse mssql multistepregistration nameisnotdeclared news objects opera panelmasterpagebuttoncontrols redirect registration relationaldatabases reportemail rotatepage schoolproject security serializesmo.table sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webprogramming webservice youareanotmemberofthedebuggerusers






