The sample application contains two ASPX files:
- Main.aspx: This file is the place holder of the progress bar.
- Progressbar.aspx: This file will populate the progress bar.
We will first examine the Main.aspx file. This file contains the single line code apart from the default code generated by the framework.
<iframe height =100 frameborder =0 width =900
id=frm runat ="server" src ="progressbar.aspx"></iframe>
width are set as per the developer's choice. By default,
iframe will display a border; if you wish, you can avoid this my setting the
frameborder attribute to 0.
Now, we will examine the Progressbar.aspx file.
var tend = "</tr></table>";
var tstrt = "<table><tr>";
scell = scell + "<td style='width:10;height:10' bgcolor=red>";
document.getElementById("cell1").innerHTML = sbase + tstrt + scell + tend;
if( i < 50)
i = i + 1;
timerID = setTimeout("progress()",1000);
It is not necessary that you should use an