473,750 Members | 2,265 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles butArchive.Clic k

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

Response.Flush( )

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

imgArchiveInPro gress.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 7724
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*******@disc ussions.microso ft.com> wrote in message
news:41******** *************** ***********@mic rosoft.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_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles butArchive.Clic k

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

Response.Flush( )

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

imgArchiveInPro gress.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******** ******@TK2MSFTN GP12.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*******@disc ussions.microso ft.com> wrote in message
news:41******** *************** ***********@mic rosoft.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_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles butArchive.Clic k

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

Response.Flush( )

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

imgArchiveInPro gress.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
1211
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 starts when I doubleclick the .MDB icon....but when I drag the .MDB to the Access icon nothing happens. Worked two days ago. Doesn't work today. Anybody know what gives? (my agenda is that sometimes I want a certain .INI file TB used when...
6
9923
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 systray icon? please give direction... thx
0
1175
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 (which is the main thread) know when the work thread has finished the job so that it can display the data received on the form? I do not want to use a global variable since if the main form is continuously checking for the global variable, it...
2
497
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 below and the code below submits the data to the DB and redirects the user. The code works locally on http://localhost or http://127.0.0.1 but when I upload it to a site (I have tried a few and they all error) it says "An error occurred on the...
2
1097
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 changing the cursor to an hour glass? Does anyone have any sample code? Thanks, Billy
0
903
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 I'm looking for is similar to how the Splitter control behaves when it is moved with the mouse. Thanks for any help. Lance
5
2050
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 .Newexec.dbo.Customers_CoypTest set Unitname=b.Unitname from .Newexec.dbo.Customers_CoypTest a join
1
1790
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
1132
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 will launch our windows application. It is assuming that the user has already installed our windows application. So how to check if that URL is visited.
0
9000
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8838
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9396
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6804
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2804
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2225
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.