move to next record in vb.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mariyana
    New Member
    • Mar 2007
    • 11

    move to next record in vb.net

    I have been trying to display the records from SQL server in a sequential manner using vb.net, but only the last record is displyed. how to display ????? in vb we were using rs.MoveNext and how to use in this.

    While dr.Read
    TextBox1.Text = dr(0).ToString( )
    TextBox2.Text = dr(1).ToString( )
    End While

    do help me out soon!!!!!!!!!!!
  • praveenkadiyalaengineer
    New Member
    • Mar 2007
    • 2

    #2
    how to call connection string in .net which is saved in configeration file

    Comment

    • praveenkadiyalaengineer
      New Member
      • Mar 2007
      • 2

      #3
      this is the correct method ,but u r not getting means please read all rows in table and make for loop

      Comment

      • moredotnet
        New Member
        • Mar 2007
        • 3

        #4
        Originally posted by mariyana
        I have been trying to display the records from SQL server in a sequential manner using vb.net, but only the last record is displyed. how to display ????? in vb we were using rs.MoveNext and how to use in this.

        While dr.Read
        TextBox1.Text = dr(0).ToString( )
        TextBox2.Text = dr(1).ToString( )
        End While

        do help me out soon!!!!!!!!!!!
        Read this link http://moredotnet.goog lepages.com/ado.net2

        Comment

        • moredotnet
          New Member
          • Mar 2007
          • 3

          #5
          http://moredotnet.goog lepages.com/ado.net2

          Comment

          Working...