Not sure if you need something like this, but this is what I did to show an animated gif and "Loading..." (moving dots) on the ASP.Net page (VB code behind) while a Crystal Report is being generated and exported to pdf...When the report is cpmpleted the progress indicator is replaced by the pdf file on the same page.
On the .apsx:
In the HTML editor in the head tag:
<script>
HideWait();
</script>
In the form codebehind declaration section:
Imports System.Threading
In the form codebehind Page_load event :
Dim srcImage As String = Server.MapPath("yourGif.gi
Response.Write("<div id='mydiv' style='color:Khaki; background-color:black; font-weight:bold; font-family:verdana; Z-INDEX: 102; LEFT: 282; POSITION: absolute; TOP: 250'>")
Response.Write("_")
Response.Write("</div>")
Response.Write("<script>my
Response.Write("<script>my
Response.Write("<script language=javascript>;")
Response.Write("var dots = 0;var dotmax = 30;function ShowWait()")
Response.Write("{var output; output = 'Loading';dots++;if(dots>=
Response.Write("for(var x = 0;x < dots;x++){output += '.';}mydiv.innerText = output;}")
Response.Write("function StartShowWait(){mydiv.styl
Response.Write("function HideWait(){mydiv.style.vis
Response.Write("StartShowW
Response.Write("<td><input
Response.Flush()
Thread.Sleep(2000)
.
.
Then the rest of my code
.
.
Main Topics
Browse All Topics





by: kalliopiPosted on 2005-09-10 at 22:58:42ID: 14858197
This should work...
ading - please wait...</span>")
ll.loading .style.dis play = 'none';") )
Response.BufferOutput = False
Response.Write("<span id=""loading"" style=""display:block"">lo
Response.Flush()
' Now go off and access the web service....
........ processing .........
' Once that's done.
' Then, this will clear the "loading message" and load the rest of the page...
Response.Write("<script>")
Response.Write("document.a
Response.Write("</script>"
Response.Write("done...")