<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Easily refresh an UpdatePanel, using JavaScript</title>
	<atom:link href="http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Wed, 10 Mar 2010 23:47:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: urpalshu</title>
		<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-38079</link>
		<dc:creator>urpalshu</dc:creator>
		<pubDate>Fri, 19 Feb 2010 22:29:35 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-38079</guid>
		<description>hi!

Thanks for this wonderful post. I am tring to use it with an Accordion. I am unable to do so, kindly help correct my syntax

&lt;pre lang=&quot;javascript&quot;&gt;protected void Page_PreRender(object sender, EventArgs e)
    {
        ArrayList ClientIDs = new ArrayList();

        for (int p = 0; p &lt; MyAccordion.Panes.Count; p++)
        {
            ListView lvOrderHistory = (ListView)MyAccordion.Panes[p].FindControl(&quot;lvOrderHistory&quot;);

            ClientIDs.Add(string.Format(&quot;&#039;{0}&#039;&quot;, lvOrderHistory.Items[p].FindControl(&quot;UpdatePanel1&quot;).ClientID));
            
            
            
        }
        string script = string.Format(&quot;var RepeaterUpdatePanels = new Array({0});&quot;, string.Join(&quot;,&quot;, ClientIDs.ToArray()));

        ClientScript.RegisterClientScriptBlock(typeof(Page), &quot;UpdatePanelIDs&quot;, script, true);
        
    }&lt;/pre&gt;

Thanks</description>
		<content:encoded><![CDATA[<p>hi!</p>
<p>Thanks for this wonderful post. I am tring to use it with an Accordion. I am unable to do so, kindly help correct my syntax</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> Page_PreRender<span style="color: #009900;">&#40;</span>object sender<span style="color: #339933;">,</span> EventArgs e<span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        ArrayList ClientIDs <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> ArrayList<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>int p <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> p <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span> MyAccordion.<span style="color: #660066;">Panes</span>.<span style="color: #660066;">Count</span><span style="color: #339933;">;</span> p<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
            ListView lvOrderHistory <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>ListView<span style="color: #009900;">&#41;</span>MyAccordion.<span style="color: #660066;">Panes</span><span style="color: #009900;">&#91;</span>p<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">FindControl</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>lvOrderHistory<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
            ClientIDs.<span style="color: #660066;">Add</span><span style="color: #009900;">&#40;</span>string.<span style="color: #660066;">Format</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;&amp;</span>#039<span style="color: #339933;">;</span><span style="color: #009900;">&#123;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&amp;</span>#039<span style="color: #339933;">;&amp;</span>quot<span style="color: #339933;">;,</span> lvOrderHistory.<span style="color: #660066;">Items</span><span style="color: #009900;">&#91;</span>p<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">FindControl</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>UpdatePanel1<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ClientID</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
&nbsp;
        <span style="color: #009900;">&#125;</span>
        string script <span style="color: #339933;">=</span> string.<span style="color: #660066;">Format</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>var RepeaterUpdatePanels <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;&amp;</span>quot<span style="color: #339933;">;,</span> string.<span style="color: #660066;">Join</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;,&amp;</span>quot<span style="color: #339933;">;,</span> ClientIDs.<span style="color: #660066;">ToArray</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        ClientScript.<span style="color: #660066;">RegisterClientScriptBlock</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span><span style="color: #009900;">&#40;</span>Page<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;</span>UpdatePanelIDs<span style="color: #339933;">&amp;</span>quot<span style="color: #339933;">;,</span> script<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span></pre></div></div>

<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-37837</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Thu, 21 Jan 2010 20:14:17 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-37837</guid>
		<description>&lt;pre lang=&quot;html&quot;&gt;&lt;/pre&gt;

This didn&#039;t work for me - couldn&#039;t click and get a refresh/postback.  Even tried turning it into a span, and adding runat=&quot;server&quot; - didn&#039;t work either of those ways, either.  I&#039;m trying to use a button to fill a DataTable, do a &quot;foreach&quot; loop and have a field from each record appear (very fast) through a label control in an UpdatePanel.  Right now it will only refresh at the end, even though I have an UpdatePanel1.Update() in the loop.  Not sure why it doesn&#039;t refresh the label.  Any help?

-Tom</description>
		<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&nbsp;</pre></div></div>

<p>This didn&#8217;t work for me &#8211; couldn&#8217;t click and get a refresh/postback.  Even tried turning it into a span, and adding runat=&#8221;server&#8221; &#8211; didn&#8217;t work either of those ways, either.  I&#8217;m trying to use a button to fill a DataTable, do a &#8220;foreach&#8221; loop and have a field from each record appear (very fast) through a label control in an UpdatePanel.  Right now it will only refresh at the end, even though I have an UpdatePanel1.Update() in the loop.  Not sure why it doesn&#8217;t refresh the label.  Any help?</p>
<p>-Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-37651</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Sun, 20 Dec 2009 23:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-37651</guid>
		<description>One way to handle conditionally triggering updates using this __doPostBack() method is to test __EVENTTARGET on the server-side.

If you call __doPostBack(&#039;UpdatePanel1&#039;, &#039;&#039;) on the client-side, __EVENTTARGET will be &quot;UpdatePanel1&quot; in ol1 and ol2.  Test that it is &quot;UpdatePanel1&quot; in ol1 and &quot;UpdatePanel2&quot; in ol2.</description>
		<content:encoded><![CDATA[<p>One way to handle conditionally triggering updates using this __doPostBack() method is to test __EVENTTARGET on the server-side.</p>
<p>If you call __doPostBack(&#8216;UpdatePanel1&#8242;, &#8221;) on the client-side, __EVENTTARGET will be &#8220;UpdatePanel1&#8243; in ol1 and ol2.  Test that it is &#8220;UpdatePanel1&#8243; in ol1 and &#8220;UpdatePanel2&#8243; in ol2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yud</title>
		<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-37635</link>
		<dc:creator>Yud</dc:creator>
		<pubDate>Sun, 20 Dec 2009 01:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-37635</guid>
		<description>This is a great idea – yet there is a problem since the callback assigned to the OnLoad has no meaning, i.e. when defining an OnLoad it will be called for any asynchronous callback –
You can see it happening in the following case, when clicking one button trigger both pannels: 

&lt;pre lang=&quot;asp&quot;&gt;&lt;asp:UpdatePanel ID=&quot;UpdatePanel1&quot; runat=&quot;server&quot; UpdateMode=&quot;Conditional&quot; OnLoad=&quot;ol1&quot; ChildrenAsTriggers=&quot;false&quot;&gt;
  &lt;ContentTemplate&gt;
    &lt;asp:Button ID=&quot;Button1&quot; runat=&quot;server&quot; Text=&quot;Button&quot; /&gt;
    &lt;asp:Label ID=&quot;Label1&quot; runat=&quot;server&quot; Text=&quot;Label&quot;&gt;&lt;/asp:Label&gt;
  &lt;/ContentTemplate&gt;
&lt;/asp:UpdatePanel&gt;
 
&lt;asp:UpdatePanel ID=&quot;UpdatePanel2&quot; runat=&quot;server&quot; UpdateMode=&quot;Conditional&quot; OnLoad=&quot;ol2&quot; ChildrenAsTriggers=&quot;false&quot;&gt;
  &lt;ContentTemplate&gt;
    &lt;asp:Button ID=&quot;Button2&quot; runat=&quot;server&quot; Text=&quot;Button&quot; /&gt;
    &lt;asp:Label ID=&quot;Label2&quot; runat=&quot;server&quot; Text=&quot;Label&quot;&gt;&lt;/asp:Label&gt;
  &lt;/ContentTemplate&gt;
&lt;/asp:UpdatePanel&gt;&lt;/pre&gt;

&lt;pre lang=&quot;csharp&quot;&gt;protected void ol1(object sender, EventArgs e)
{
	Label1.Text = &quot;[1] &quot;+DateTime.Now.ToString();
	UpdatePanel1.Update();
}

protected void ol2(object sender, EventArgs e)
{
	Label2.Text = &quot;[2] &quot; + DateTime.Now.ToString();
	UpdatePanel2.Update();
}&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>This is a great idea – yet there is a problem since the callback assigned to the OnLoad has no meaning, i.e. when defining an OnLoad it will be called for any asynchronous callback –<br />
You can see it happening in the following case, when clicking one button trigger both pannels:</p>

<div class="wp_syntax"><div class="code"><pre class="asp" style="font-family:monospace;"><span style="color: #060; font-weight: bold;">&lt;</span>asp<span style="color: #060; font-weight: bold;">:</span>UpdatePanel ID<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;UpdatePanel1&quot;</span> runat<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;server&quot;</span> UpdateMode<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;Conditional&quot;</span> OnLoad<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;ol1&quot;</span> ChildrenAsTriggers<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;false&quot;</span><span style="color: #060; font-weight: bold;">&gt;</span>
  <span style="color: #060; font-weight: bold;">&lt;</span>ContentTemplate<span style="color: #060; font-weight: bold;">&gt;</span>
    <span style="color: #060; font-weight: bold;">&lt;</span>asp<span style="color: #060; font-weight: bold;">:</span>Button ID<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;Button1&quot;</span> runat<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;server&quot;</span> Text<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;Button&quot;</span> <span style="color: #060; font-weight: bold;">/&gt;</span>
    <span style="color: #060; font-weight: bold;">&lt;</span>asp<span style="color: #060; font-weight: bold;">:</span>Label ID<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;Label1&quot;</span> runat<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;server&quot;</span> Text<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;Label&quot;</span><span style="color: #060; font-weight: bold;">&gt;&lt;/</span>asp<span style="color: #060; font-weight: bold;">:</span>Label<span style="color: #060; font-weight: bold;">&gt;</span>
  <span style="color: #060; font-weight: bold;">&lt;/</span>ContentTemplate<span style="color: #060; font-weight: bold;">&gt;</span>
<span style="color: #060; font-weight: bold;">&lt;/</span>asp<span style="color: #060; font-weight: bold;">:</span>UpdatePanel<span style="color: #060; font-weight: bold;">&gt;</span>
&nbsp;
<span style="color: #060; font-weight: bold;">&lt;</span>asp<span style="color: #060; font-weight: bold;">:</span>UpdatePanel ID<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;UpdatePanel2&quot;</span> runat<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;server&quot;</span> UpdateMode<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;Conditional&quot;</span> OnLoad<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;ol2&quot;</span> ChildrenAsTriggers<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;false&quot;</span><span style="color: #060; font-weight: bold;">&gt;</span>
  <span style="color: #060; font-weight: bold;">&lt;</span>ContentTemplate<span style="color: #060; font-weight: bold;">&gt;</span>
    <span style="color: #060; font-weight: bold;">&lt;</span>asp<span style="color: #060; font-weight: bold;">:</span>Button ID<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;Button2&quot;</span> runat<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;server&quot;</span> Text<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;Button&quot;</span> <span style="color: #060; font-weight: bold;">/&gt;</span>
    <span style="color: #060; font-weight: bold;">&lt;</span>asp<span style="color: #060; font-weight: bold;">:</span>Label ID<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;Label2&quot;</span> runat<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;server&quot;</span> Text<span style="color: #060; font-weight: bold;">=</span><span style="color: #c00;">&quot;Label&quot;</span><span style="color: #060; font-weight: bold;">&gt;&lt;/</span>asp<span style="color: #060; font-weight: bold;">:</span>Label<span style="color: #060; font-weight: bold;">&gt;</span>
  <span style="color: #060; font-weight: bold;">&lt;/</span>ContentTemplate<span style="color: #060; font-weight: bold;">&gt;</span>
<span style="color: #060; font-weight: bold;">&lt;/</span>asp<span style="color: #060; font-weight: bold;">:</span>UpdatePanel<span style="color: #060; font-weight: bold;">&gt;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> ol1<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	Label1.<span style="color: #0000FF;">Text</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;[1] &quot;</span><span style="color: #008000;">+</span>DateTime.<span style="color: #0000FF;">Now</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
	UpdatePanel1.<span style="color: #0000FF;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> ol2<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	Label2.<span style="color: #0000FF;">Text</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;[2] &quot;</span> <span style="color: #008000;">+</span> DateTime.<span style="color: #0000FF;">Now</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
	UpdatePanel2.<span style="color: #0000FF;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: &#62;reSPAWNed</title>
		<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-37242</link>
		<dc:creator>&#62;reSPAWNed</dc:creator>
		<pubDate>Tue, 24 Nov 2009 09:51:26 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-37242</guid>
		<description>Great article... I have been looking for a way to force automatic ajax postbacks for some time now.

This works like a charm.

If anyone should be interested I simply put a line of javascript code in the pages that should auto-postback:
&lt;pre lang=&quot;javascript&quot;&gt;setTimeout(&quot;__doPostBack(&#039;MainUpdatePanel&#039;, &#039;&#039;)&quot;, 900000);&lt;/pre&gt;

This executes &#039;__doPostBack&#039; for my update panel &#039;MainUpdatePanel&#039; every 15 minutes, so I can save a draft of what the user has done so far.</description>
		<content:encoded><![CDATA[<p>Great article&#8230; I have been looking for a way to force automatic ajax postbacks for some time now.</p>
<p>This works like a charm.</p>
<p>If anyone should be interested I simply put a line of javascript code in the pages that should auto-postback:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">setTimeout<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;__doPostBack('MainUpdatePanel', '')&quot;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">900000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This executes &#8216;__doPostBack&#8217; for my update panel &#8216;MainUpdatePanel&#8217; every 15 minutes, so I can save a draft of what the user has done so far.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wing Yip</title>
		<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-36416</link>
		<dc:creator>Wing Yip</dc:creator>
		<pubDate>Thu, 10 Sep 2009 16:51:16 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-36416</guid>
		<description>Hi 

Have implemented this solution on a panel which contains a mixture of client buttons (anchor tags) and asp controls (linkbuttons).

All is fine except that the last line of code executed when an asp linkbutton is clicked is a response.redirect(&quot;otherpage.aspx&quot;).

Unfortunately this line is completely ignored.  Doesn&#039;t cause any error its  just ignored ie. new page is not loaded.

Anyone know a way out this

Wing Yip</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>Have implemented this solution on a panel which contains a mixture of client buttons (anchor tags) and asp controls (linkbuttons).</p>
<p>All is fine except that the last line of code executed when an asp linkbutton is clicked is a response.redirect(&#8220;otherpage.aspx&#8221;).</p>
<p>Unfortunately this line is completely ignored.  Doesn&#8217;t cause any error its  just ignored ie. new page is not loaded.</p>
<p>Anyone know a way out this</p>
<p>Wing Yip</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slava</title>
		<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35991</link>
		<dc:creator>Slava</dc:creator>
		<pubDate>Tue, 28 Jul 2009 16:50:46 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35991</guid>
		<description>That&#039;s the conclusion I came to as well. Just wanted to be sure that I am not mistaken about it. Well... javascript + web services seems to be the only way. And it&#039;s probably the best way, very optimized, json instead of soap xml, and of course no viewstate, no postbacks. But... in this case you have to forget about asp.net controls at all and develop your own javascript controls for UI (or use some library). 

Thanks Dave for confirming this issue with me!</description>
		<content:encoded><![CDATA[<p>That&#8217;s the conclusion I came to as well. Just wanted to be sure that I am not mistaken about it. Well&#8230; javascript + web services seems to be the only way. And it&#8217;s probably the best way, very optimized, json instead of soap xml, and of course no viewstate, no postbacks. But&#8230; in this case you have to forget about asp.net controls at all and develop your own javascript controls for UI (or use some library). </p>
<p>Thanks Dave for confirming this issue with me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35989</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Tue, 28 Jul 2009 15:16:13 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35989</guid>
		<description>The problem is that only one partial postback may ever be running at any given time.  No matter what you do to trigger them on the client-side, you won&#039;t be able to load multiple individual blocks simultaneously.  Web services (or plain HTTP GETs, like jQuery&#039;s $.load()) are the only way to achieve the effect that you see on Pageflakes.</description>
		<content:encoded><![CDATA[<p>The problem is that only one partial postback may ever be running at any given time.  No matter what you do to trigger them on the client-side, you won&#8217;t be able to load multiple individual blocks simultaneously.  Web services (or plain HTTP GETs, like jQuery&#8217;s $.load()) are the only way to achieve the effect that you see on Pageflakes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slava</title>
		<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35982</link>
		<dc:creator>Slava</dc:creator>
		<pubDate>Tue, 28 Jul 2009 00:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35982</guid>
		<description>Thanks Dave,
The link you provided is a little different approach, which has it&#039;s own pluses and minuses.
Dynamically loaded or dynamically rendered controls is something else.

I still want to try to make it work with update panels and __doPostBack(). Although I can put __doPostBack() in pageLoad function to initiate a postback for each update panel or control with update panel, there is another problem, that I encountered and you have already posted here: http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/

So, pageLoad doesn&#039;t seem like a working method to solve that problem. But, maybe, through some manipulations with Sys.Application.add_init(function()) it would be possible to achieve the result?

It&#039;s a little weird that if you have a button in each update panel or control with update panel, and you click that button everythere, when in fact, the loading of the panels would be simultaneous.

So, it is possible, just curious if I can find a way to initiate such postback for all these update panels (or controls with update panels) when the page loads.

Anyways, thanks for you blog, it&#039;s extremely useful.</description>
		<content:encoded><![CDATA[<p>Thanks Dave,<br />
The link you provided is a little different approach, which has it&#8217;s own pluses and minuses.<br />
Dynamically loaded or dynamically rendered controls is something else.</p>
<p>I still want to try to make it work with update panels and __doPostBack(). Although I can put __doPostBack() in pageLoad function to initiate a postback for each update panel or control with update panel, there is another problem, that I encountered and you have already posted here: <a href="http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/" rel="nofollow">http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/</a></p>
<p>So, pageLoad doesn&#8217;t seem like a working method to solve that problem. But, maybe, through some manipulations with Sys.Application.add_init(function()) it would be possible to achieve the result?</p>
<p>It&#8217;s a little weird that if you have a button in each update panel or control with update panel, and you click that button everythere, when in fact, the loading of the panels would be simultaneous.</p>
<p>So, it is possible, just curious if I can find a way to initiate such postback for all these update panels (or controls with update panels) when the page loads.</p>
<p>Anyways, thanks for you blog, it&#8217;s extremely useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35980</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Mon, 27 Jul 2009 22:28:22 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35980</guid>
		<description>You&#039;re right that this won&#039;t work for multiple simultaneous updates.  Only one partial postback may occur at any given time, with newer ones canceling older ones.  So, UpdatePanels aren&#039;t well suited to the scenario you&#039;re describing.

Take a look at this technique instead: http://encosia.com/2008/02/05/boost-aspnet-performance-with-deferred-content-loading/</description>
		<content:encoded><![CDATA[<p>You&#8217;re right that this won&#8217;t work for multiple simultaneous updates.  Only one partial postback may occur at any given time, with newer ones canceling older ones.  So, UpdatePanels aren&#8217;t well suited to the scenario you&#8217;re describing.</p>
<p>Take a look at this technique instead: <a href="http://encosia.com/2008/02/05/boost-aspnet-performance-with-deferred-content-loading/" rel="nofollow">http://encosia.com/2008/02/05/boost-aspnet-performance-with-deferred-content-loading/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slava</title>
		<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35979</link>
		<dc:creator>Slava</dc:creator>
		<pubDate>Mon, 27 Jul 2009 22:24:36 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35979</guid>
		<description>It works fine for one update panel, but doesn&#039;t seem to work with multiple update panels or multiple user controls with update panels.
Can&#039;t figure out how to load simultaneously (!!!) multiple update panels, or multiple user control that contain update panels.
Seems like a dead end to me if I want to load simultaneously multiple user control with update panels after the static content of the page is loaded.
Trying to achieve the same  functionality as on http://www.pageflakes.com/ for example still using the update panels and server side asp.net controls.</description>
		<content:encoded><![CDATA[<p>It works fine for one update panel, but doesn&#8217;t seem to work with multiple update panels or multiple user controls with update panels.<br />
Can&#8217;t figure out how to load simultaneously (!!!) multiple update panels, or multiple user control that contain update panels.<br />
Seems like a dead end to me if I want to load simultaneously multiple user control with update panels after the static content of the page is loaded.<br />
Trying to achieve the same  functionality as on <a href="http://www.pageflakes.com/" rel="nofollow">http://www.pageflakes.com/</a> for example still using the update panels and server side asp.net controls.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amy</title>
		<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35662</link>
		<dc:creator>Amy</dc:creator>
		<pubDate>Fri, 26 Jun 2009 13:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35662</guid>
		<description>This is great!  Thank you.  Just what I needed to get the update panel to refresh without a button.</description>
		<content:encoded><![CDATA[<p>This is great!  Thank you.  Just what I needed to get the update panel to refresh without a button.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Supe</title>
		<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35109</link>
		<dc:creator>Supe</dc:creator>
		<pubDate>Mon, 27 Apr 2009 15:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35109</guid>
		<description>atconway: thankyou thankyou thankyou thankyou thankyou x infinity squared

And thanks to Encosia for being google friendly</description>
		<content:encoded><![CDATA[<p>atconway: thankyou thankyou thankyou thankyou thankyou x infinity squared</p>
<p>And thanks to Encosia for being google friendly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: atconway</title>
		<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35015</link>
		<dc:creator>atconway</dc:creator>
		<pubDate>Mon, 20 Apr 2009 20:46:05 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35015</guid>
		<description>I don&#039;t know how to post the answer:  button.UniqueID is the parameter, but wrap it with the server tags as displayed at the beginning of the page.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know how to post the answer:  button.UniqueID is the parameter, but wrap it with the server tags as displayed at the beginning of the page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: atconway</title>
		<link>http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35014</link>
		<dc:creator>atconway</dc:creator>
		<pubDate>Mon, 20 Apr 2009 20:44:40 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/13/easily-refresh-an-updatepanel-using-javascript/#comment-35014</guid>
		<description>My last post has some of the JS stripped.  It should have &#039;  &#039;  (without spaces) as the 1st parameter in the doPostBack call.</description>
		<content:encoded><![CDATA[<p>My last post has some of the JS stripped.  It should have &#8216;  &#8216;  (without spaces) as the 1st parameter in the doPostBack call.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
