What I am trying to do is when user click on a web forms button, a "Processing...." text will show up on a label. The following is the code for this button.
Problem: click on the button, the text will only show up in the lable AFTER the startprocess() is completed. Is there anyway to make it show up BEFORE executing the next statement? Thanks for your help.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
lblstatus.text = "Processing...."
startprocess()
End Sub
Problem: click on the button, the text will only show up in the lable AFTER the startprocess() is completed. Is there anyway to make it show up BEFORE executing the next statement? Thanks for your help.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
lblstatus.text = "Processing...."
startprocess()
End Sub