A
Aaron
I am currently moving an old thick client solution to ASP.NET and I am
trying to replicate as much of the current UI as possible in an effort to
migrate users with a minimum of training.
On one particular form, there are DB navigate buttons which will allow for
BOF, MovePrevious, MoveNext , and EOF.
I am successfully populating a dataset with all of the required records.
I need to "bind" some textboxes to columns in the dataset. I am doing it
like this:
Dim Cell1 As String
Cell1 = DataSet.Tables(0).Rows(0).Item(1).ToString
txtFullname.Text = Trim(Cell1)
And so on for each textbox/column.
This works just fine for a one record dataset, but there are obviously
problems with this approach.
What is the best way to implement the BOF, MovePrevious, MoveNext , and EOF
buttons and allow for navigation of the dataset and populating the textboxes
with the correct row of data? Is a dataset the best object to use, or would
this work better with a datalist?
Any advice will be appreciated.
Thanks for your time,
Aaron
trying to replicate as much of the current UI as possible in an effort to
migrate users with a minimum of training.
On one particular form, there are DB navigate buttons which will allow for
BOF, MovePrevious, MoveNext , and EOF.
I am successfully populating a dataset with all of the required records.
I need to "bind" some textboxes to columns in the dataset. I am doing it
like this:
Dim Cell1 As String
Cell1 = DataSet.Tables(0).Rows(0).Item(1).ToString
txtFullname.Text = Trim(Cell1)
And so on for each textbox/column.
This works just fine for a one record dataset, but there are obviously
problems with this approach.
What is the best way to implement the BOF, MovePrevious, MoveNext , and EOF
buttons and allow for navigation of the dataset and populating the textboxes
with the correct row of data? Is a dataset the best object to use, or would
this work better with a datalist?
Any advice will be appreciated.
Thanks for your time,
Aaron