By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,180 Members | 1,051 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,180 IT Pros & Developers. It's quick & easy.

ASP.Net Page lifeycle and threads

P: n/a
Hi
I have a problem with updating a control ( a simple label ) with a value that is returned from an asynchronous call in an ASP.Net page. Basically my page loads, I call a method asynchronously, get a result back and try to put it on my form.

The value never appeares on my form, even though I know the control ( label ) has the value. I had assumed it had something to do with the fact that the async call was on a different thread, or that perhaps the page needed refreshed from the client side

Can anyone suggest a reason for ths issue and potential solution

Thanks
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
by the time you have the result, the page has already left the server bound
for the client. you will need to cause the page execution to wait for the
async result before posting to the client or refresh the page so it can pick
up the value

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Pinfold" <an*******@discussions.microsoft.com> wrote in message
news:64**********************************@microsof t.com...
Hi,
I have a problem with updating a control ( a simple label ) with a value
that is returned from an asynchronous call in an ASP.Net page. Basically
my page loads, I call a method asynchronously, get a result back and try
to put it on my form.

The value never appeares on my form, even though I know the control (
label ) has the value. I had assumed it had something to do with the fact
that the async call was on a different thread, or that perhaps the page
needed refreshed from the client side.

Can anyone suggest a reason for ths issue and potential solution.

Thanks

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.