Click here to Skip to main content
11,412,834 members (75,366 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET C#4.0
hello Smile | :)

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 at 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
0 OriginalGriff 399
1 Sascha Lefévre 200
2 Maciej Los 180
3 ProgramFOX 130
4 Sergey Alexandrovich Kryukov 110
0 Sergey Alexandrovich Kryukov 9,025
1 OriginalGriff 7,317
2 Maciej Los 3,570
3 Abhinav S 3,298
4 Peter Leow 3,084

Advertise | Privacy | Mobile
Web03 | 2.8.150427.1 | Last Updated 12 Jan 2013
Copyright © CodeProject, 1999-2015
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