This will not update until the end. the browser has to get something back.
> That is what I though however, it is not updating. I must be missing
> something. Here is my code behind:
[quoted text clipped - 48 lines]
>>>
>>> TIA
Using AJAX, am I able to update the listbox as it is updated?
> This will not update until the end. the browser has to get something
> back.
[quoted text clipped - 51 lines]
>>>>
>>>> TIA
IfThenElse - 11 Oct 2007 01:57 GMT
Your thread does not end to send anything back??
> Using AJAX, am I able to update the listbox as it is updated?
>
[quoted text clipped - 53 lines]
>>>>>
>>>>> TIA
bruce barker - 11 Oct 2007 03:30 GMT
you're missing the basic concept of browsers and ajax. ajax is a pattern
used in javascript to make a web service call (via xmlhttprequest), and
then process the reponse, usually with some dynamic html.
the updatepanel when triggered:
1. javascript sends a request to page with all form fields via
xmlhttprequest
2. the server processes the form data like a normal postback
3. the server runs a special render that only renders the updatepanel(s)
4. the server sends updatepanel html back the client
5. a javascript async event is fired by xmlhttprequest when the html is
returned
6. javascript event handler replaces the contents of the updatepanel
with the html
so nothing happens in the update anel until the html is sent back.
-- bruce (sqlwork.com)
> Using AJAX, am I able to update the listbox as it is updated?
>
[quoted text clipped - 53 lines]
>>>>>
>>>>> TIA
Bjorn Sagbakken - 11 Oct 2007 20:37 GMT
What about adding this to the end of your code:
UpdatePanel1.update();
This will refresh the update panel from outside of the updatepanel to
reflect the changes in the list.
Bjorn
> Using AJAX, am I able to update the listbox as it is updated?
>
[quoted text clipped - 53 lines]
>>>>>
>>>>> TIA