Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

refresh client screen on time

Status
Not open for further replies.

bmcc

Technical User
May 31, 2002
10
US
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

 
I think this is because the page hasn't finished it round trip yet. The server processes the "startprocess" procedure before the postback.

Maybe you could check on the page load if it's a post back and if so then run "startprocess".
 
you can add javascript to the button that could show a "Loading" image or a "Processing..." <span> tag... on button click...

"...we both know I'm training to become a cagefighter...see what happens if you try 'n hit me..."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top