Hi Ray, Do you know how to do it?
I have
Protected Sub ButtonSomeLongT ast_Click(ByVal sender As Object, ByVal
e As System.EventArg s) Handles ButtonSomeLongT ast.Click
ExecuteLongTask ()
End Sub
then I grabbed this from internet:
<script language="javas cript">
function toggle(e) {
if (e.style.displa y == "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(progres s)"
where progress is a DIV which contains the image with the GIF
<div id="progress"My AnimatedImage </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***********@l ibero.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***********@l ibero.it wrote:
I have an animated gif in an image control:
Me.ImageProgre ss1.Visible = False
I want that when the User click on a given button to execute a long
task
Me.ImageProgre ss1 become visible until the task on the server is
finished.
I call the task this way:
Protected Sub ButtonSomeLongT ast_Click(ByVal sender As Object, ByVal
e As System.EventArg s) Handles ButtonSomeLongT ast.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