C
codeslinger73
I know this has been asked before in many ways, but I'm not seeing an
answer that fits what I'm trying to do. The few times I've seen this
asked exactly the same way I am, there's never an answer.
I'm getting a DataTable from an object. This can't be changed. The
object takes care of the query and then will also update changed rows
when asked to. Pretty slick when used on the WindowsForm side. Very
reusable and sealed up so no one monkies with it. There are some
calculations that happen when this object writes back to the database
so making a FormView and using my own sql isn't going to work.
I'm trying to make a WebForm that has a dropdown and a handful of
other stand alone controls. Textboxes and checkboxes for the most
part. The goal is to make the dropdown populate from one field in the
DataTable and then to make the other controls bind to the active row
in the DataTable.
Is it really that hard to do? I've been through post after post,
trying lots of things, but just can't make it work.
I've made this work the long way before. Feeding the values on
Page_Load, or a "Refresh" function and then scraping the screen when
the dropdown or listbox changes.....but that sucks. Is this really
the only way to do it?
Mark
answer that fits what I'm trying to do. The few times I've seen this
asked exactly the same way I am, there's never an answer.
I'm getting a DataTable from an object. This can't be changed. The
object takes care of the query and then will also update changed rows
when asked to. Pretty slick when used on the WindowsForm side. Very
reusable and sealed up so no one monkies with it. There are some
calculations that happen when this object writes back to the database
so making a FormView and using my own sql isn't going to work.
I'm trying to make a WebForm that has a dropdown and a handful of
other stand alone controls. Textboxes and checkboxes for the most
part. The goal is to make the dropdown populate from one field in the
DataTable and then to make the other controls bind to the active row
in the DataTable.
Is it really that hard to do? I've been through post after post,
trying lots of things, but just can't make it work.
I've made this work the long way before. Feeding the values on
Page_Load, or a "Refresh" function and then scraping the screen when
the dropdown or listbox changes.....but that sucks. Is this really
the only way to do it?
Mark