Dynamically change display while processing a button click.

  • Thread starter Thread starter TheDude5B
  • Start date Start date
T

TheDude5B

Hi,

I have a procedure which calls different functions from within it and
it takes a while to do different functions. I want to be able to
change the display text during each stage, so when the button is
clicked to begin with, I want some text to be displayed straight away,
then when it gets to the next stage of the button click, the text
changes to something else so that the person is kept up to date with
what stage of the process they are at.

I am not very familiar with Javascript so want to really do it in
asp.net before turning to javascript.

So is it posible to dynamically change some text in between stages of
the process running?

Thanks
 
the browser is request/response model. when the user clicks a button,
the form data is posted to the server, the server then builds a response
page and sends it back. the browser then rerender the page.

you can not update the browser screen from the server, except from a
request, so you can not push data. you need the browser to poll the
server for status changes, either through javascript, or the refresh
meta tag (header).

google this newsgroup for progress bar for lots of approaches to this.

bruce (sqlwork.com)
 
Is there not an ASP.net Progress Bar component? I have had a look and
found one thing but you need to pay for it.

Failing this, is there just an easy way to hide a Panel control as
soon as the button is clicked?

So for example as soon as the button is clicked, the Form Panel is
hidden and a progress Panel is shown with a gif image that looks like
a loading screen? Just now when I click the button, the code has to
execute before the panel is hidden.

Thanks
 
Back
Top