473,386 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to show a busy icon when processing a work)

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
2 7695
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: (Pete Cresswell) | last post by:
A couple days ago, I could drag a .MDB to an icon that starts up MS Access and Access would start with that .MDB opened. Access still starts when I doubleclick the Access icon...and Access still...
6
by: Action | last post by:
I can add a systray icon in normal windows application... but when i do it in windows service, the systray icon just don't show up is that because i don't have any "component" to contain the...
0
by: Kueishiong Tu | last post by:
I have a window form application. It requires to retrieve data from a web site. Since the web request is very time consuming, so I create a work thread to do the job. How does the window main form...
2
by: Luke | last post by:
Hi I have the following code which is an ASP questionnaire using an Access database. (I am using access as I have no choice!). Basically there is an html form which submits the form to the page...
2
by: Billy Cormic | last post by:
Hello, Some of the functions of my web application take a good amount of time to load. Is there a good way to show users that information is processing and will enventually be loaded? Like...
0
by: Lance | last post by:
Is there a way to display a form's bounds via a checkered icon when a form is being resized or moved with the mouse and to only have the form's bounds change after the mouse button is released? What...
5
by: xchong.zhou | last post by:
I have a question when I work on Linkedserver The Linkedserver name is ,the Datebase name is Newexec,the Table name is Customers_CoypTest The SQLScript is below: Update ...
1
by: Chandrajit | last post by:
Hi, Please help I what show some message when user click on X button of form which is at upper side corner of the form in vb.net
0
by: DevScar | last post by:
I need to show a notification when the user goes to a particular URL. Our application is going to sit in the task bar. When he visits a particular page in our site a notification should pop-up which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.