Web User Control Callback

  • Thread starter Thread starter Webmills
  • Start date Start date
W

Webmills

Hi

I have a web user control that, as part of its functionality,
calculates a value that needs to be passed back to its' parent page for
further calculation and display. This value is stored within
theViewState collection for the web user control and accessors exist.

At which point within the parent page should I be using this value. If
I access it within the Page_Load event then the calculation has not
occured.

Thanks for your help.

James
 
Oops, sorry, answered my own question. The web user control was working
asynchronously which was causing the problem. I have now made it
synchronous and hey presto, all works as expected.
 
Oops, sorry, answered my own question. The web user control was working
asynchronously which was causing the problem. I have now made it
synchronous and hey presto, all works as expected.
 
Back
Top