473,378 Members | 1,407 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,378 software developers and data experts.

How to display a picture while a long process is carried out ?

I have an animated gif in an image control:
Me.ImageProgress1.Visible = False

I want that when the User click on a given button to execute a long
task
Me.ImageProgress1 become visible until the task on the server is
finished.
I call the task this way:

Protected Sub ButtonSomeLongTast_Click(ByVal sender As Object, ByVal
e As System.EventArgs) Handles ButtonSomeLongTast.Click

ExecuteLongTask()

End Sub

I think I am dumb as I can't figure out how to do this simple thing!
Thanks for any help!

-Pam

Aug 14 '06 #1
4 1355
What you can also do is add some javascipt to the onclick() method of
the button to change the visibility of the image.

pa***********@libero.it wrote:
I have an animated gif in an image control:
Me.ImageProgress1.Visible = False

I want that when the User click on a given button to execute a long
task
Me.ImageProgress1 become visible until the task on the server is
finished.
I call the task this way:

Protected Sub ButtonSomeLongTast_Click(ByVal sender As Object, ByVal
e As System.EventArgs) Handles ButtonSomeLongTast.Click

ExecuteLongTask()

End Sub

I think I am dumb as I can't figure out how to do this simple thing!
Thanks for any help!

-Pam
Aug 15 '06 #2
I tried but it does not work. See a blank page.
Can anyone show a simple working example?

-pam

Ray Booysen ha scritto:
What you can also do is add some javascipt to the onclick() method of
the button to change the visibility of the image.

pa***********@libero.it wrote:
I have an animated gif in an image control:
Me.ImageProgress1.Visible = False

I want that when the User click on a given button to execute a long
task
Me.ImageProgress1 become visible until the task on the server is
finished.
I call the task this way:

Protected Sub ButtonSomeLongTast_Click(ByVal sender As Object, ByVal
e As System.EventArgs) Handles ButtonSomeLongTast.Click

ExecuteLongTask()

End Sub

I think I am dumb as I can't figure out how to do this simple thing!
Thanks for any help!

-Pam
Aug 15 '06 #3
How about some more of the code you're writing?

pa***********@libero.it wrote:
I tried but it does not work. See a blank page.
Can anyone show a simple working example?

-pam

Ray Booysen ha scritto:
>What you can also do is add some javascipt to the onclick() method of
the button to change the visibility of the image.

pa***********@libero.it wrote:
>>I have an animated gif in an image control:
Me.ImageProgress1.Visible = False

I want that when the User click on a given button to execute a long
task
Me.ImageProgress1 become visible until the task on the server is
finished.
I call the task this way:

Protected Sub ButtonSomeLongTast_Click(ByVal sender As Object, ByVal
e As System.EventArgs) Handles ButtonSomeLongTast.Click

ExecuteLongTask()

End Sub

I think I am dumb as I can't figure out how to do this simple thing!
Thanks for any help!

-Pam
Aug 15 '06 #4
Hi Ray, Do you know how to do it?

I have

Protected Sub ButtonSomeLongTast_Click(ByVal sender As Object, ByVal
e As System.EventArgs) Handles ButtonSomeLongTast.Click

ExecuteLongTask()

End Sub

then I grabbed this from internet:

<script language="javascript">
function toggle(e) {
if (e.style.display == "none") {
e.style.display = "";
} else {
e.style.display = "none";
}
}
</script>

I placed after
<title></title>

Also I placed
<body onload="toggle(progress)">

Then under onclick() event of button1 I placed: = "toggle(progress)"

where progress is a DIV which contains the image with the GIF

<div id="progress"MyAnimatedImage </div>
No luck!!
I am a beginner and I am probably missing something basic.
Some simple working example in code would be great.
-Pam

Ray Booysen ha scritto:
How about some more of the code you're writing?

pa***********@libero.it wrote:
I tried but it does not work. See a blank page.
Can anyone show a simple working example?

-pam

Ray Booysen ha scritto:
What you can also do is add some javascipt to the onclick() method of
the button to change the visibility of the image.

pa***********@libero.it wrote:
I have an animated gif in an image control:
Me.ImageProgress1.Visible = False

I want that when the User click on a given button to execute a long
task
Me.ImageProgress1 become visible until the task on the server is
finished.
I call the task this way:

Protected Sub ButtonSomeLongTast_Click(ByVal sender As Object, ByVal
e As System.EventArgs) Handles ButtonSomeLongTast.Click

ExecuteLongTask()

End Sub

I think I am dumb as I can't figure out how to do this simple thing!
Thanks for any help!

-Pam
Aug 15 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bill | last post by:
Hello all, I found the following visual basic 6.0 source code on the web for displaying web cam video in a GUI. However, I want to display video from a camera which is hooked up through...
3
by: RAllsopp | last post by:
I have a client who would like to have several pictures associated with one system. I have read about storing only the pathname to save OLE overhead and have set-up a form for my client to...
1
by: bborden | last post by:
Novice Access programmer here. I would like to display an image using the Toolbox Image object by calling the images file name using: =fPictureFiles(!!,1) in the Picture control. Below...
1
by: Lee810 | last post by:
The xml doc has pictures but in the format of a very long character string. I'm not sure what this format is called so I do not know what type of converter I should be looking for. May have...
2
by: Erwin Moller | last post by:
Hi group, I have this obscure problem that really needs to be fixed, but I am out of ideas. Because the original script is very big, I'll try to summarize its functionality. Setup: - many...
9
by: tshad | last post by:
This was posted before but the message got messed up (all NLs were stripped out for some reason). I have 2 labels that hold the name of different images on my .aspx page. <asp:Label ID="Logo"...
14
by: lmttag | last post by:
Hello. We're developing an ASP.NET 2.0 (C#) application and we're trying to AJAX-enable it. We're having problem with a page not showing the page while a long-running process is executing. So,...
2
by: smorrison64 | last post by:
I have a form that is coded to open a File Dialog boc to pick a picture to display on that particular item on a subform. My form is not based on query, but rather two separate tables (one primary,...
1
by: amritranjan | last post by:
How to retrive image file from MS access database and display this in another JSPpage -------------------------------------------------------------------------------- This is my Jsp code for...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.