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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top