D
darrel
I have a user control that sets a public shared variable that I then access
from the parent page:
projectclass.controlclass.thevariable
the problem I'm finding is that if I have the variable set in the user
control within the Page_Load function, it is 'one' page reload behind the
parent page. In otherwords, it appears that the parent page grabs the
variable, THEN the control's function is executed to update the variable.
The quick fix was to move all of the control's variable setting functions
into the Page_Init function. This works, but is it proper? Is there a better
way to handle this?
-Darrel
from the parent page:
projectclass.controlclass.thevariable
the problem I'm finding is that if I have the variable set in the user
control within the Page_Load function, it is 'one' page reload behind the
parent page. In otherwords, it appears that the parent page grabs the
variable, THEN the control's function is executed to update the variable.
The quick fix was to move all of the control's variable setting functions
into the Page_Init function. This works, but is it proper? Is there a better
way to handle this?
-Darrel