You are here: Home

View Blog

Calling postback event from Javascript

by Robin Gaschk on Monday, 31 January 2011 11:45 PM
There have been a few times now that I have needed to force a postback via javascript. Lately this has been for a
Sharepoint WebPart as there is an issue sometimes with a second postback being disabled.
Also found it helpful for when doing a Sharepoint dialog callback.

Instead of writing up an example I will post the source that I found most helpful.


This post was of great help. Note though, the reason for this post, I got caught out that the "__doPostBack" function actually
has two underscores, not just one.

http://www.dotnetspider.com/resources/1521-How-call-Postback-from-Javascript.aspx

This one was also useful

http://www.codedigest.com/Articles/ASPNET/320_Doing_or_Raising_Postback_using___doPostBack()_function_from_Javascript_in_AspNet.aspx

With the bottom of this post as well. http://forums.asp.net/p/1260538/2355866.aspx

Blogs Parent Separator Robin's Blog
Author
Robin Gaschk

The ramblings of a soapbox man