title: ASP.NET: How to update client-side from server side?
body: <p>I want to update a label on client side from server side while the function is still under execution at server side. How can I achieve this?</p>
  
  <p>Here's the code snippet:</p>
  
  <pre><code>protected void Button1_Click(object sender, EventArgs e)
          {
              string Result = "Success";
              if (Result == "Success")
              {
                  Label1.Text = "Plan mst Completed";
                  Thread.Sleep(2000);     //Some functionality here
                  Label1.Text = "Packing date mst Started";
              }
              if (Result == "Success")
              {
                  Label1.Text = "Packing date mst Completed";
                  Thread.Sleep(2000);     //Some functionality here
                  Label1.Text = "Etd mst Started";
              }
  
              if (Result == "Success")
              {
  
                  Label1.Text = "Etd mst Completed";
                  Thread.Sleep(2000);     //Some functionality here
                  Label1.Text = "Inner box mst Started";
  
              }
          }
  </code></pre>
  
  <p>I want all changes in label1.text to be reflected on client side, while function is still under execution.
  Please help!!!</p>