G
Guest
I have a user control which holds information about a single well of a 96
well plate (http://en.wikipedia.org/wiki/Microtiter_plate) . The user control
has a couple of input fields which users can set to specify what is in that
particular well. Since I want 96 of them displayed on the page, I am creating
them and adding them to TableCell objects which are then put into a Table
object.
I want the user to be able to make all adjustments to the whole set of 96
user controls and then click a single button to enter that information into a
database. The problem is that when the click the button on the parent page,
all of the user controls have vanished! They are not persisted through the
PostBack!
I know I can reinstantiate them, but then they will be in the state in which
they were originally loaded, they won't keep the user's changes.
I have been able to gather information from them, but only is it is input
fields and even then I have had to iterate through Request.Form.AllKeys and
parse out control names to figure out where I am.
The user control has a Well object which has a InsertIntoDatabase method I
would like to use, but I can't figure out how to do so. Is it possible to
call a method from an object which is a property of a user control onPostBack
of the parent page?
Thanks!
Ethan
Ethan Strauss Ph.D.
Bioinformatics Scientist
Promega Corporation
2800 Woods Hollow Rd.
Madison, WI 53711
608-274-4330
800-356-9526
(e-mail address removed)
well plate (http://en.wikipedia.org/wiki/Microtiter_plate) . The user control
has a couple of input fields which users can set to specify what is in that
particular well. Since I want 96 of them displayed on the page, I am creating
them and adding them to TableCell objects which are then put into a Table
object.
I want the user to be able to make all adjustments to the whole set of 96
user controls and then click a single button to enter that information into a
database. The problem is that when the click the button on the parent page,
all of the user controls have vanished! They are not persisted through the
PostBack!
I know I can reinstantiate them, but then they will be in the state in which
they were originally loaded, they won't keep the user's changes.
I have been able to gather information from them, but only is it is input
fields and even then I have had to iterate through Request.Form.AllKeys and
parse out control names to figure out where I am.
The user control has a Well object which has a InsertIntoDatabase method I
would like to use, but I can't figure out how to do so. Is it possible to
call a method from an object which is a property of a user control onPostBack
of the parent page?
Thanks!
Ethan
Ethan Strauss Ph.D.
Bioinformatics Scientist
Promega Corporation
2800 Woods Hollow Rd.
Madison, WI 53711
608-274-4330
800-356-9526
(e-mail address removed)