By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,220 Members | 1,633 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,220 IT Pros & Developers. It's quick & easy.

how to show a busy icon when processing a work)

P: n/a
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

Dec 14 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Use Dave and Al's samples at :
http://www.daveandal.net/books/6744/samples.aspx

See the chapter 3 samples.
The code is available on each sample page.

Juan T. Llibre
ASP.NET MVP
============
"Holysmoke" <Ho*******@discussions.microsoft.com> wrote in message
news:41**********************************@microsof t.com...
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

Dec 14 '05 #2

P: n/a
Personally, I think http://blogs.crsw.com/mark/articles/642.aspx is one of
the nicest ones out there.

Karl

--

MY ASP.Net tutorials
http://www.openmymind.net/

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:uN**************@TK2MSFTNGP12.phx.gbl...
Use Dave and Al's samples at :
http://www.daveandal.net/books/6744/samples.aspx

See the chapter 3 samples.
The code is available on each sample page.

Juan T. Llibre
ASP.NET MVP
============
"Holysmoke" <Ho*******@discussions.microsoft.com> wrote in message
news:41**********************************@microsof t.com...
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


Dec 14 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.