Hi.
1.
How can I get the total amount of rows in a DataReader? I know I can make a "Do Loop" like this:
But wont it slow my page down let say if I have 1000+ post in it? Isnt there a way like a propery I can get the info from?
2.
If I know I want to retriev the info in a filed on row 33. Can I get that info direct or do I have to do like this or something like this:
But still how efective is this when I have a DB with 1000+ post in it? Isent there a easier way?
//Andi
1.
How can I get the total amount of rows in a DataReader? I know I can make a "Do Loop" like this:
Code:
Do While DR.Read()
Count = Count + 1
Loop
But wont it slow my page down let say if I have 1000+ post in it? Isnt there a way like a propery I can get the info from?
2.
If I know I want to retriev the info in a filed on row 33. Can I get that info direct or do I have to do like this or something like this:
Code:
PostNumber = 33
For i = 1 to PostNumber
DR.Read()
If i = PostNumber Then Response.Write(DR("field"))
Next
But still how efective is this when I have a DB with 1000+ post in it? Isent there a easier way?
//Andi