Private Sub Nav() t1.Text = ds.Tables("Customer").Rows(i).Item(0) t2.Text = ds.Tables("Customer").Rows(i).Item(1) t3.Text = ds.Tables("Customer").Rows(i).Item(2) End Sub
You need to keep index of current record in ViewState. To show next record increment this index by one and for privious decrease by one. Whenever you call function defined in class file you need to pass index along with other parameters.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If i = 0 Then nv.Nav(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, ds) End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)