title: Need to change label text during OnClick event. ASP pages with C# backend
body: <p>I have a web application using ASP pages and C# backend. I have a button that triggers a very long method. In this method, about 20 functions are called, ranging from deleting tables, executing procedures and loading excel spreadsheets. In everyone of these function calls (that are run via the button OnClick event), It will change the text of a label (a status indicator to the user) and possibly trigger an AJAX ModalPopupExtender with a warning message when something fails. The Label change and the Popup extender will not trigger within the OnCLick event. I believe it is because of the single OnClick thread that is running all these actions. If it was a Windows Forms app, I could use Update() to force the label change.</p>
  
  <p>I believe the solution involves multithreading but am not sure where to begin. Any help would be appreciated. Would the OnClick event be the main thread and the underlying functions the second thread?</p>