I would like to display a message for a few seconds before moving on to executing code that follows.
How can I do this in C#?
page load ()....
{
label1.text="Thank you for your input";
Delay by 3 seconds??? before entering codeX
codeX....
code....
}
Is it as simple as using a wait(3000)?
Clarifying my Question:
I am creating a survey web part in sharepoint and would like to display the message “Thanks for your vote” for 3 seconds before rendering the results of the survey. I am assuming I could use the timer inside of an AJAX update panel, that way It wouldnt affect the rest of the page? I hope this clarifies my Question. Please let me know, the best way I can implement this. Thanks
Use Javascript to show and hide your message.
with a div on your page:
this can be on your redirected page. Or you can call the function on the curernt page if your not redirecting, in which case you will need to change the ready call to your own call.