| | |
Big Repeater Question for you all
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
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 activexcontrol advice ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net box browser button c# cac checkbox click commonfunctions control css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock deployment development dgv dialog dropdownlist dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash formatdecimal formview gridview gudi iframe iis javascript listbox login microsoft mono mouse mssql multistepregistration news novell numerical objects opera panelmasterpagebuttoncontrols radio redirect registration relationaldatabases reportemail rotatepage save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visualstudio web webapplications webdevelopemnt webdevelopment webprogramming webservice xsl youareanotmemberofthedebuggerusers






