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
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