Click here to Skip to main content
12,760,992 members (32,185 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET C#4.0
hello :)

I want to do some actions at, and I want some delay between each one, is there a way to do that ?

if there please provide me a code as an example

ex. I want when I press button1, to add some text to label1 , after that wait for 20 sec for example, and add some text to the label ,

some thing like that

thanks in advance : )
Posted 12-Jan-13 14:50pm
Sergey Alexandrovich Kryukov 12-Jan-13 21:05pm
I'm not sure it may make sense, considering the nature of a Web application, where everything happens in response to HTTP request. I would not expect a useful advice unless you clearly explain your purpose.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

JQuery, the provide a api called delay() and sleep()
I think you can use that.

Here are the URL[^]

May be you can use setTimeout event also

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 12 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100