Re: Updating a control with data on server event. - 04-26-2007 , 08:34 AM
Here I am again with those questions...
I figured I actually don't have to poll for the server action, unless I want
to get partial data as it comes. When it ends, it will call the "OnSucceeded"
client script that I registered. Is that correct?
I still want to use setInterval to start off the server action. I'm not sure
it's possible, though.
If I understand correctly, the client script is registered with the page
containing the control. I can use registerStartupScript to call
setInterval(). The problem is I want to be able to change the interval, but
that would be impossible, wouldn't it? I can't change or unregister the
Alternatively I was thinking to start a timer on the server, where I have
better control, and then I will use setInterval to poll the server for new
"Steven Cheng[MSFT]" wrote:
Re: Updating a control with data on server event. - 04-26-2007 , 08:58 AM
And one more: Is I view the source of the page with the control, shouldn't I
see the registered script? I can't see it.
Re: Updating a control with data on server event. - 05-03-2007 , 06:11 AM
As for the script callback polling, though you do not need it to do partial
render, you'll still need it to poll the server-side processing status,
don't you? Since the long-run task is running at server-side, and
server-side can not actively notify client, client-side need to use script
to postback(in background) to poll the result, that's why we need it here.
Also, for the Page.ClientScript.RegisterStartupScript, it will output the
registered script functions at the end of your page's <form>
element.(rendered after other form elements have been rendered). You should
be able to find them in the client browser's "View Source" file. Haven't
you been able to find the function?
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
|Thread Tools||Search this Thread|