getting a control's variable to update prior to parent page execution.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,135
Latest member
VeronaShap
Top