当前位置:中国站长下载文章中心网页编程.NET编程 → 教你制做Web实时进度条

教你制做Web实时进度条

减小字体 增大字体 作者:不详  来源:不详  发布时间:2006-8-14 8:25:49
32(Session["State"].ToString());
   }
   else
   {
   Session["State"]=0;
   }
   if(state>0&&state<=10)
   {
   this.lblMessages.Text = "Task undertaking!";
   this.panelProgress.Width = state*30;
   this.lblPercent.Text = state*10 + "%";
   Page.RegisterStartupScript("","<script>window.setTimeout('window.Form1.submit()',100);</script>");
   }
   if(state==100)
   {
   this.panelProgress.Visible = false;
   this.panelBarSide.Visible = false;
   this.lblMessages.Text = "Task Completed!";
   Page.RegisterStartupScript("","<script>window.close();</script>");
   }
   }
  
   Web Form Designer generated code#region Web Form Designer generated code
   override protected void OnInit(EventArgs e)
   {
   //
   // CODEGEN: This call is required by the ASP.NET Web Form Designer.
   //
   InitializeComponent();
   base.OnInit(e);
   }
  
   /**//// <summary>
   /// Required method for Designer support - do not modify
   /// the contents of this method with the code editor.
   /// </summary>
   private void InitializeComponent()
   {
   this.Load += new System.EventHandler(this.Page_Load);
  
   }
   #endregion
   }
  }
  
  
  
  
    做人要厚道,请注明转自chinazhan中国站长(www.ChinaZhan.com)。

上一页  [1] [2]