|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do i ".moveFirst" and check for ".eof" in asp.net
<i><b>Originally posted by : gregg s (gmsetzer@yahoo.com)</b></i><br /><br />Hi all,<br /><br />How do I check for end of file in an asp.net application? I want to determine if eof occurs and then move to the first record. Currently I am using a reader to read through the records but I cant move back to the first. Any suggestions?<br /><br />Plus, how can I determine the record count in asp.net?<br /><br />Thanks in advance.<br /><br />Gregg
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : Jimit Patadiya (info@stpwebhosting.com)</b></i><br />Hi,<br /><br />I am also searching the same solution. If you find please let me know about that. <br /><br />Thanks,<br />Jimit Patadiya<br /><br /><br /><br />------------<br />gregg s at 5/30/2002 6:26:41 PM<br /><br /><br />Hi all,<br /><br />How do I check for end of file in an asp.net application? I want to determine if eof occurs and then move to the first record. Currently I am using a reader to read through the records but I cant move back to the first. Any suggestions?<br /><br />Plus, how can I determine the record count in asp.net?<br /><br />Thanks in advance.<br /><br />Gregg
|
|
#3
|
|||
|
|||
|
<i><b>Originally posted by : giovanni</b></i><br /><br />Giovanni at 09/02/2002 12:34:36 AM<br /><br />Hi all,<br />I am not good speak English!<br /><br />the DataReader can only make "MoveNext"! <br />It cannot make "MoveLast" <br />You can only make creating it the "DataSet"<br /><br />excused for mine not perfect English <br /><br />Bye,<br />Giovanni <br />------------<br />Jimit Patadiya at 7/17/2002 3:26:58 AM<br /><br />Hi,<br /><br />I am also searching the same solution. If you find please let me know about that. <br /><br />Thanks,<br />Jimit Patadiya<br /><br /><br /><br />------------<br />gregg s at 5/30/2002 6:26:41 PM<br /><br /><br />Hi all,<br /><br />How do I check for end of file in an asp.net application? I want to determine if eof occurs and then move to the first record. Currently I am using a reader to read through the records but I cant move back to the first. Any suggestions?<br /><br />Plus, how can I determine the record count in asp.net?<br /><br />Thanks in advance.<br /><br />Gregg
|
|
#4
|
|||
|
|||
|
<i><b>Originally posted by : Jonathan (jchestang@usabilitydynamics.com)</b></i><br />I keep hearing that you must use a 'dataset' if you want to do things like movefirst() or movelast(). <br /><br />BUT NO ONE EVER CAN TELL YOU HOW TO ACTUALLY DO THIS.<br /><br />I've looked at the 'dataset' methods and properties and no where to I see this capability.<br /><br />How do you move move back through a dataset???<br /><br /><br />------------<br />giovanni at 9/2/2002 5:48:57 AM<br /><br /><br />Giovanni at 09/02/2002 12:34:36 AM<br /><br />Hi all,<br />I am not good speak English!<br /><br />the DataReader can only make "MoveNext"! <br />It cannot make "MoveLast" <br />You can only make creating it the "DataSet"<br /><br />excused for mine not perfect English <br /><br />Bye,<br />Giovanni <br />------------<br />Jimit Patadiya at 7/17/2002 3:26:58 AM<br /><br />Hi,<br /><br />I am also searching the same solution. If you find please let me know about that. <br /><br />Thanks,<br />Jimit Patadiya<br /><br /><br /><br />------------<br />gregg s at 5/30/2002 6:26:41 PM<br /><br /><br />Hi all,<br /><br />How do I check for end of file in an asp.net application? I want to determine if eof occurs and then move to the first record. Currently I am using a reader to read through the records but I cant move back to the first. Any suggestions?<br /><br />Plus, how can I determine the record count in asp.net?<br /><br />Thanks in advance.<br /><br />Gregg
|
|
#5
|
|||
|
|||
|
if rdr.Read() Then
.... Else ... End if |
|
#6
|
||||
|
||||
|
Or
Code:
While readerObject.Read() Do this End While |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > How do i ".moveFirst" and check for ".eof" in asp.net |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|