<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://bloggingabout.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Martijn Veken - All Comments</title><link>http://bloggingabout.net/blogs/mveken/default.aspx</link><description>&lt;br /&gt;Just having&lt;br /&gt;
some fun with .NET</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: Performing async postback from javascript</title><link>http://bloggingabout.net/blogs/mveken/archive/2008/01/02/performing-async-postback-from-javascript.aspx#482979</link><pubDate>Mon, 15 Mar 2010 18:43:40 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:482979</guid><dc:creator>Caryna</dc:creator><description>&lt;p&gt;Thank you, you saved me a lot of time!&lt;/p&gt;
&lt;p&gt;Just one comment - this only works if the eventName is the clientId of the control, not the Id... Also, I did prm._doPostBack instead - otherwise it was still doing a full postback.&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=482979" width="1" height="1"&gt;</description></item><item><title>re: Performing async postback from javascript</title><link>http://bloggingabout.net/blogs/mveken/archive/2008/01/02/performing-async-postback-from-javascript.aspx#482856</link><pubDate>Fri, 19 Feb 2010 10:12:16 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:482856</guid><dc:creator>Aldscar</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=482856" width="1" height="1"&gt;</description></item><item><title>re: Performing async postback from javascript</title><link>http://bloggingabout.net/blogs/mveken/archive/2008/01/02/performing-async-postback-from-javascript.aspx#482797</link><pubDate>Wed, 03 Feb 2010 18:33:27 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:482797</guid><dc:creator>Eder Nucci</dc:creator><description>&lt;p&gt;Explendid! It solved my problem on first run. Thank you ALOT!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=482797" width="1" height="1"&gt;</description></item><item><title>re: Performing async postback from javascript</title><link>http://bloggingabout.net/blogs/mveken/archive/2008/01/02/performing-async-postback-from-javascript.aspx#481852</link><pubDate>Wed, 24 Jun 2009 21:36:14 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:481852</guid><dc:creator>Avi</dc:creator><description>&lt;p&gt;Great solution; One thing though - If the UpdatePanel&amp;#39;s UpdateMode is set to Conditional, a server side call to myUpdatePanel.Update(); is needed, or else the partial page postback won&amp;#39;t be visible on the client side.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=481852" width="1" height="1"&gt;</description></item><item><title>re: Performing async postback from javascript</title><link>http://bloggingabout.net/blogs/mveken/archive/2008/01/02/performing-async-postback-from-javascript.aspx#481711</link><pubDate>Wed, 27 May 2009 18:25:17 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:481711</guid><dc:creator>Jon</dc:creator><description>&lt;p&gt;Sweet!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=481711" width="1" height="1"&gt;</description></item><item><title>Aggiornare in JavaScript la pagina chiamante in partial-rendering</title><link>http://bloggingabout.net/blogs/mveken/archive/2008/01/02/performing-async-postback-from-javascript.aspx#481657</link><pubDate>Mon, 18 May 2009 12:53:28 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:481657</guid><dc:creator>Maurizio Tammacco's blog</dc:creator><description>&lt;p&gt;Mediante JavaScript è possibile eseguire programmaticamente un post della pagina mediante il richiamo&lt;/p&gt;
&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=481657" width="1" height="1"&gt;</description></item><item><title>Eseguire PostBack asincroni con Javascript</title><link>http://bloggingabout.net/blogs/mveken/archive/2008/01/02/performing-async-postback-from-javascript.aspx#481622</link><pubDate>Sun, 10 May 2009 22:47:47 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:481622</guid><dc:creator>Around and About .NET World</dc:creator><description>&lt;p&gt;Richiamando la funzione Javascript __doPostBack da una pagina ASP .NET, è possibile eseguire il PostBack&lt;/p&gt;
&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=481622" width="1" height="1"&gt;</description></item><item><title>re: Performing async postback from javascript</title><link>http://bloggingabout.net/blogs/mveken/archive/2008/01/02/performing-async-postback-from-javascript.aspx#481155</link><pubDate>Thu, 12 Feb 2009 13:02:39 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:481155</guid><dc:creator>Achutha Krishnan</dc:creator><description>&lt;p&gt;Excellent solution. My scenario was clicking on the Label should open a Modal Pop-Up after performing few operations in Code-Behind. The page was really should the post back even though it was in UpdatePanel. Your blog gave me the Answer!!!&lt;/p&gt;
&lt;p&gt;function OpenModal(btnHDNCI)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var btnHDN = document.getElementById(btnHDNCI);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;doPostBackAsync(btnHDNCI,&amp;#39;OnClick&amp;#39;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;__doPostBack(&amp;quot;&amp;#39;&amp;quot;+btnHDNCI+&amp;quot;&amp;#39;&amp;quot;,&amp;#39;OnClick&amp;#39;); &amp;nbsp;//--- This actually did full postback&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;function doPostBackAsync( eventName, eventArgs )&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var prm = Sys.WebForms.PageRequestManager.getInstance();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( !Array.contains( prm._asyncPostBackControlIDs, eventName) )&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;prm._asyncPostBackControlIDs.push(eventName);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( !Array.contains( prm._asyncPostBackControlClientIDs, eventName) )&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;prm._asyncPostBackControlClientIDs.push(eventName);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;__doPostBack( eventName, eventArgs );&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=481155" width="1" height="1"&gt;</description></item><item><title>re: Performing async postback from javascript</title><link>http://bloggingabout.net/blogs/mveken/archive/2008/01/02/performing-async-postback-from-javascript.aspx#480721</link><pubDate>Thu, 15 Jan 2009 19:19:36 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:480721</guid><dc:creator>Martijn Veken</dc:creator><description>&lt;p&gt;Hi Coriscow,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not exactly sure what you&amp;#39;re doing but the exception occurs because te parameters that are passed to the function do not match the conditions. But you probably figured that out yourself :-)&lt;/p&gt;
&lt;p&gt;It think you can easily solve this at the serverside aswel. If you mark CallBackHome as a trigger for the updatepanel you can call your custom control in CallBackHome&amp;#39;s eventhandler.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=480721" width="1" height="1"&gt;</description></item><item><title>re: Performing async postback from javascript</title><link>http://bloggingabout.net/blogs/mveken/archive/2008/01/02/performing-async-postback-from-javascript.aspx#479873</link><pubDate>Fri, 09 Jan 2009 11:42:17 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:479873</guid><dc:creator>coriscow</dc:creator><description>&lt;p&gt;Hi Martinjn!!&lt;/p&gt;
&lt;p&gt;I tried your solution, and it almost works for me. I have an UpdatePanel with a custom control inside of it (ID=romulo : IPostBackEventHandler) and a button (ID=CallBackHome) outside. My intention is to do an async postback when CallBackHome is clicked. This postback has to be received by romulo. However, it crashes in the following function from the Microsoft Ajax lib, more specifically at &amp;#39;if (e) throw e;&amp;#39;. If I skip that line it works perfectly. Any clue you could give me?? Thanks in advance!&lt;/p&gt;
&lt;p&gt;&amp;lt;code&amp;gt;&lt;/p&gt;
&lt;p&gt;Sys.WebForms.BeginRequestEventArgs = function Sys$WebForms$BeginRequestEventArgs(request, postBackElement) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// &amp;lt;param name=&amp;quot;request&amp;quot; type=&amp;quot;Sys.Net.WebRequest&amp;quot;&amp;gt;&amp;lt;/param&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;/// &amp;lt;param name=&amp;quot;postBackElement&amp;quot; domElement=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/param&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;var e = Function._validateParams(arguments, [&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{name: &amp;quot;request&amp;quot;, type: Sys.Net.WebRequest},&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{name: &amp;quot;postBackElement&amp;quot;, domElement: true}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;]);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;if (e) throw e;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Sys.WebForms.BeginRequestEventArgs.initializeBase(this);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;this._request = request;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;this._postBackElement = postBackElement;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;lt;/code&amp;gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=479873" width="1" height="1"&gt;</description></item><item><title>re: Introduction to Geneva - Using passive federation</title><link>http://bloggingabout.net/blogs/mveken/archive/2008/11/24/introduction-to-geneva-using-passive-federation.aspx#478210</link><pubDate>Fri, 19 Dec 2008 10:25:10 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:478210</guid><dc:creator>Dennis van der Stelt</dc:creator><description>&lt;p&gt;Awesome articles dude! Please continue!!!&lt;/p&gt;
&lt;p&gt;Claimed based authentication isn&amp;#39;t used a lot in the world. More advocates are needed! :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=478210" width="1" height="1"&gt;</description></item><item><title>Introduction to Geneva - Using passive federation</title><link>http://bloggingabout.net/blogs/mveken/archive/2008/11/24/introduction-to-geneva-using-passive-federation.aspx#477156</link><pubDate>Mon, 24 Nov 2008 21:16:44 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:477156</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You&amp;#39;ve been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=477156" width="1" height="1"&gt;</description></item><item><title>Introduction to Geneva - Using passive federation</title><link>http://bloggingabout.net/blogs/mveken/archive/2008/11/21/introduction-to-geneva-setting-up-the-server.aspx#477155</link><pubDate>Mon, 24 Nov 2008 21:11:37 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:477155</guid><dc:creator>Martijn Veken</dc:creator><description>&lt;p&gt;Using Geneva in for authentication in your website is called &amp;quot;passive federation&amp;quot;. It relies&lt;/p&gt;
&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=477155" width="1" height="1"&gt;</description></item><item><title>Introduction to Geneva - Setting up the server</title><link>http://bloggingabout.net/blogs/mveken/archive/2008/11/21/introduction-to-geneva-setting-up-the-server.aspx#477116</link><pubDate>Fri, 21 Nov 2008 22:46:16 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:477116</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You&amp;#39;ve been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=477116" width="1" height="1"&gt;</description></item><item><title>re: Performing async postback from javascript</title><link>http://bloggingabout.net/blogs/mveken/archive/2008/01/02/performing-async-postback-from-javascript.aspx#474837</link><pubDate>Fri, 26 Sep 2008 16:06:18 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:474837</guid><dc:creator>Clar8605</dc:creator><description>&lt;p&gt;Perfect!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=474837" width="1" height="1"&gt;</description></item></channel></rss>