D
Darrel
I have a usercontrol that sets some public variables.
I can grab this variable from another usercontrol like this:
ctype(Page, templatePage).UC_getVariables.globalMenuCategory
This works fine because the control setting the variable is processed before
the control reading the variable.
The catch is that I now want to read this variable from the parent page. The
issue is that the parent page code is executed PRIOR to the userControl that
sets the variable. So I'm not returning a value.
Is there any way around this? If not, I'm guessing the solution is to simply
migrate the UC code that sets the variables into my parent page's
codebehind.
-Darrel
I can grab this variable from another usercontrol like this:
ctype(Page, templatePage).UC_getVariables.globalMenuCategory
This works fine because the control setting the variable is processed before
the control reading the variable.
The catch is that I now want to read this variable from the parent page. The
issue is that the parent page code is executed PRIOR to the userControl that
sets the variable. So I'm not returning a value.
Is there any way around this? If not, I'm guessing the solution is to simply
migrate the UC code that sets the variables into my parent page's
codebehind.
-Darrel