if you just need to have some animated thing showing up so that the user knows that something is happening, use an animated GIF.
if you need to have a real progress bar, then use two frames (one that does the actual work and set it to 0px height or width - depending on how you position it) and another that reloads itself every 1 second for example.
you will also need to have a session variable that contains the current progress value (20%, 30% ...)
as the work is being done, the frame doing the work modifies the session variable. this variable is read on every reload by the progress bar frame and displays the bar accordingly.
if you need more help in a certaing direction, post back.
--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
session variables are available to all pages being called in the same session. therefore if you modify it from the page doing the work, the value will also be available through the session colletion to the progress bar page.
Session["currentValue"] = 10;
and retrieve it with
(int)Session["currentValue"]
the size of the two frames are always fixed. the only thing moving could be a a table's width. imagine a table with one row and and one cell containing another table with one row and one cell. the outer table would have a fixed dimension, while the inner one would have the width depending on the value of Session["currentValue"]
--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.