M
Matt
I know im coming to this party really late, but I have finally beein
expiramenting with AJAX on some ASP development. I seem to have things
working the way I want with one exception. I have a button that fires server
side code for the on-click event. This process time is variable, and I need
to be able to show the user a wait time or at least an updating status as to
the stage of processing (not just a silly non-dyanamic graphic that every
tutorial wants to show).
Inside the server side event, I figured I would just add items to a AJAX
enabled listbox to give the user an idea of where the processing is currently
at. (Started...Working..xxxx # of records processed, finalizing.., etc).
I've added the code to add the items at various stages of the processing, and
figured that databinding the listbox control located in an update panel would
show the items. Unfortunately, that's now the result i get. Until the
button's event completely finishes, the listbox control (located in a
separate update panel) does not update (and of course then I get all the
statuses at once...). Waiting until the end of the function to interact with
the user is what I was trying to avoid.
Am I missing something obvious? I assume I could call an async function
inside the buttons on click event, and then have an AJAX control on the page
poll a db for a status, but I don't think it should be that hard. Can
someone help point me in the right direction?
Thanks! -Matt
expiramenting with AJAX on some ASP development. I seem to have things
working the way I want with one exception. I have a button that fires server
side code for the on-click event. This process time is variable, and I need
to be able to show the user a wait time or at least an updating status as to
the stage of processing (not just a silly non-dyanamic graphic that every
tutorial wants to show).
Inside the server side event, I figured I would just add items to a AJAX
enabled listbox to give the user an idea of where the processing is currently
at. (Started...Working..xxxx # of records processed, finalizing.., etc).
I've added the code to add the items at various stages of the processing, and
figured that databinding the listbox control located in an update panel would
show the items. Unfortunately, that's now the result i get. Until the
button's event completely finishes, the listbox control (located in a
separate update panel) does not update (and of course then I get all the
statuses at once...). Waiting until the end of the function to interact with
the user is what I was trying to avoid.
Am I missing something obvious? I assume I could call an async function
inside the buttons on click event, and then have an AJAX control on the page
poll a db for a status, but I don't think it should be that hard. Can
someone help point me in the right direction?
Thanks! -Matt