Home > Net >  Asp.net real-time progress bar
Asp.net real-time progress bar

Time:12-29

I am a beginner, to achieve a real time progress bar, the following code while finally can also make a progress bar to an end, but there is no middle process, real-time display the progress of the progress bar, thanks for your bosses,

Code:
Js:
The function progressValue (value) {
Var progress=document. GetElementById (" progress1 ")
Progress. Value=https://bbs.csdn.net/topics/value
}
Cs:
Protected void Button1_Click (object sender, EventArgs e)
{
for (int i=1; I & lt;=100; I++)
{
ClientScript. RegisterStartupScript (ClientScript. GetType (), "the key" + I, "& lt; Script> ProgressValue (" + I + ") & lt;/script>" );
System. Threading. Thread. Sleep (1000);
}
}
Aspx:




  • Related