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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help using sleep in VB

Status
Not open for further replies.

smbrown

Programmer
Mar 30, 2009
15
US
I want to notify the user that the record was updated in the DB when an update is made, then clear the message from the text box. I tried the following, but the message is never displayed. Seems like I have done this before, but now I can't find the code I used. What am I missing?

Me.Mistake.Text = "The record was added to database"
Con.Close()
System.Threading.Thread.Sleep(3000)
Me.Mistake.Text = ""

Thanks,
SMBrown
 
That will run on the server, not the client. You will have to use AJAX or javascipt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top