Click here to Skip to main content
14,385,812 members

Creating a Delayed Postback

Rate this:
3.00 (2 votes)
Please Sign up or sign in to vote.
3.00 (2 votes)
24 May 2011CPOL
Especially as the use of JQuery grows, there may be time when you'll want a postback to occur but not right away, especially if you want to animate something on the browser first.
Server Code: (VB, roll your own semicolons)
Protected PostBackStr As String
PostBackStr = Page.ClientScript.GetPostBackEventReference(Me, "MyCustomArgument")


Client Code:
setTimeout("<%= PostBackStr %>", 1000);

License

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

Share

About the Author

Oakman
Bad
United States United States
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
Tip/Trick
Posted 24 May 2011

Tagged as

Stats

11K views
1 bookmarked