CallBack not showing results

  • Thread starter Thread starter barry
  • Start date Start date
B

barry

In a webform, I include as one of the parms a callback function in the
beginInvoke function.
Within the callback function put a literal into the textbox.
The textbox is not being filled. I realize it must have something to do with
the statelessness and have tried doing a setfocus using javascript before
and after entering data into the box. The debug.write shows the text is
there.
Any help in the right direction would be appreciated.

thanks
 
I assume you use .NET v1. You are probably facing that Page has rendered
before the call returns and TextBox's Text is set. Where in the page
lifecycle you call it, and how long does it take the call to finish? Try
placing Debug.Write into overridden Render method on the Page and see if
Render gets called before your async method call finishes.

In v1 there is no sync stage where Page would wait for the async call to
finish, so that returned data would get to the rendering process. In v2
there is async page feature, which works in this fashion., more about it
here
http://pluralsight.com/blogs/fritz/archive/2004/10/19/2892.aspx
 

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

Back
Top