how to show a busy icon when processing a work)

G

Guest

Hi,

I have a asp.net form with a button in it.

In the onlclick event of button I want to write a function which does some a
bit of work with a timespan of 15 seconds. So I want to show a image
something like "Work In Progress" when this process is going on and hide it
when the work done

I do something like this button click event

Private Sub butArchive_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles butArchive.Click

imgArchiveInProgress.Visible = True 'Icon to show work in progress
lblInfo.Text = "Work In Progress" 'Text

Response.Flush()

System.Threading.Thread.Sleep(15000) 'Simulate work for 15 seconds

imgArchiveInProgress.Visible = False
lblInfo.Text = ""

End Sub


It does not work.I have to tried too flush the buffer before start
processing but still does n't work?!

I appreciate your help,

TIA,
Holy
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top