developer155
Programmer
This is a question about UserControl execution.
The user control I have calls a function in its code behind from ascx
<td><%=SomeFunction() %>
That function updates a variable in the code behind of that control and I need that variable in outside code
At what point of time does =SomeFunction() execute in that control?
I noticed that after I call Page.LoadControl
and try to access the variable in the control, the variable is blank, meaning SomeFunction() has not yet executed. So when should I access control so that it is in the state after SomeFunction() has been called?
thanks!
The user control I have calls a function in its code behind from ascx
<td><%=SomeFunction() %>
That function updates a variable in the code behind of that control and I need that variable in outside code
At what point of time does =SomeFunction() execute in that control?
I noticed that after I call Page.LoadControl
and try to access the variable in the control, the variable is blank, meaning SomeFunction() has not yet executed. So when should I access control so that it is in the state after SomeFunction() has been called?
thanks!