Web User Control Callback

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
 
W

Webmills

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.
 
W

Webmills

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.
 

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

Top