Database programming in VB.NET

  • Thread starter Thread starter sandy
  • Start date Start date
S

sandy

hi friends...
i am new to VB.NET. and C#... i was trying to read some data from the
database using code,
and display that in 2 textboxes.i was able to get only the first row.
i used ExecuteReader() function of SqlCommand class and read()
function to read data..
i have put a button on the form to advance the records..
in that click method i have called the read() function...
but it's not moving to the next record...even after clicking the
button...
please help me anyone...
thanks and regards...
sandeep...
 
sandy said:
hi friends...
i am new to VB.NET. and C#... i was trying to read some data from the
database using code,
and display that in 2 textboxes.i was able to get only the first row.
i used ExecuteReader() function of SqlCommand class and read()
function to read data..
i have put a button on the form to advance the records..
in that click method i have called the read() function...
but it's not moving to the next record...even after clicking the
button...
please help me anyone...
thanks and regards...
sandeep...
Try this article, with VB example code:

http://msdn2.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.aspx
 
Thanks a lot pvdg42...

but i was getting the data when used read() inside a while loop.
Problem is in displaying the data in textboxes..the first record is
fetched.
and is shown, but it is not moving forward..
please help...
thanks & regards
sandeep...
 
Sandy,

I have given an answer in the vb.net language newsgroup about this. (This
because you are multiposting with Google, otherwise I would have let you
search yourself to this).

Cor
 
Back
Top