<?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: Are you making these 3 common ASP.NET AJAX mistakes?</title>
	<atom:link href="http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Sun, 14 Mar 2010 13:33:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Robert Mayer</title>
		<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-38058</link>
		<dc:creator>Robert Mayer</dc:creator>
		<pubDate>Wed, 17 Feb 2010 17:26:42 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-38058</guid>
		<description>Thank you so much!  That bit about using __EVENTTARGET to determine which UpdatePanel triggered the partial page postback solved a nagging problem in my app!</description>
		<content:encoded><![CDATA[<p>Thank you so much!  That bit about using __EVENTTARGET to determine which UpdatePanel triggered the partial page postback solved a nagging problem in my app!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Seven Sins of DotNetNuke Module Developers &#124; TechBubble</title>
		<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-37906</link>
		<dc:creator>The Seven Sins of DotNetNuke Module Developers &#124; TechBubble</dc:creator>
		<pubDate>Sat, 30 Jan 2010 00:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-37906</guid>
		<description>[...] ASP.NET developers implement AJAX functionality. For every AJAX request, UpdatePanel causes the entire page life-cycle to be repeated on the server. As a result, a module that has lots of AJAX functionality implemented using UpdatePanel is going [...]</description>
		<content:encoded><![CDATA[<p>[...] ASP.NET developers implement AJAX functionality. For every AJAX request, UpdatePanel causes the entire page life-cycle to be repeated on the server. As a result, a module that has lots of AJAX functionality implemented using UpdatePanel is going [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Torbjörn</title>
		<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-37707</link>
		<dc:creator>Torbjörn</dc:creator>
		<pubDate>Tue, 29 Dec 2009 10:25:26 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-37707</guid>
		<description>Very nice article, just what I was looking for!</description>
		<content:encoded><![CDATA[<p>Very nice article, just what I was looking for!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Balaji Birajdar</title>
		<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-37267</link>
		<dc:creator>Balaji Birajdar</dc:creator>
		<pubDate>Wed, 25 Nov 2009 11:37:13 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-37267</guid>
		<description>Great insight. I admit , that I was making the same mistakes :(. But now I will not .... :)</description>
		<content:encoded><![CDATA[<p>Great insight. I admit , that I was making the same mistakes :(. But now I will not &#8230;. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-36332</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Wed, 26 Aug 2009 15:28:13 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-36332</guid>
		<description>I&#039;ve run into that myself, and to be perfectly honest I&#039;m not completely clear on why the $ delimited UniqueID comes back sometimes, but not usually.  I think it has to do with controls being inside ITemplate containers, like content pages, GridView templates, etc.

If you find a definitive answer, let me know.  I&#039;ll add a note to that section of the post.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve run into that myself, and to be perfectly honest I&#8217;m not completely clear on why the $ delimited UniqueID comes back sometimes, but not usually.  I think it has to do with controls being inside ITemplate containers, like content pages, GridView templates, etc.</p>
<p>If you find a definitive answer, let me know.  I&#8217;ll add a note to that section of the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-36280</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Wed, 19 Aug 2009 17:15:47 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-36280</guid>
		<description>I completely admit that I did not understand the page lifecycle, and never realized how important it is until messing with some ajax.  I have done a couple things before and used a check for Page.IsPostBack to control things before.  Did not know the order of lifecycle events though.  So thank you for the quick intro in my ignorance.

That said, I used your code sample to check to see which updatepanel is requesting postback.  I found that my updatepanels are not the __EVENTTARGET, but the trigger, so:
&lt;pre lang=&quot;x&quot;&gt;Request[&quot;__EVENTTARGET&quot;] != UpdatePanel1.ClientID&lt;/pre&gt;
but:
&lt;pre lang=&quot;x&quot;&gt;Request[&quot;__EVENTTARGET&quot;] == DropDownList.ClientID&lt;/pre&gt;

and really, ClientID would not equal the Request either as Request[&quot;__EVENTTARGET&quot;] returns this: &quot;ctl00$Content$DropDownList&quot; 
and my DropDownList.ClientID returns this:
&quot;ctl00_Content_DropDownList&quot;

So reading the comments here, I see UniqueID is supposed to be interchangeable.  I replaced ClientID with UniqueID and I get correct returns.

Any reason why my code would be causing the differences here?  Note: I do the check for this in the Page_Load event.  Although I did try in the UpdatePanel&#039;s PreRender event and the same data was being returned.</description>
		<content:encoded><![CDATA[<p>I completely admit that I did not understand the page lifecycle, and never realized how important it is until messing with some ajax.  I have done a couple things before and used a check for Page.IsPostBack to control things before.  Did not know the order of lifecycle events though.  So thank you for the quick intro in my ignorance.</p>
<p>That said, I used your code sample to check to see which updatepanel is requesting postback.  I found that my updatepanels are not the __EVENTTARGET, but the trigger, so:</p>

<div class="wp_syntax"><div class="code"><pre class="x" style="font-family:monospace;">Request[&quot;__EVENTTARGET&quot;] != UpdatePanel1.ClientID</pre></div></div>

<p>but:</p>

<div class="wp_syntax"><div class="code"><pre class="x" style="font-family:monospace;">Request[&quot;__EVENTTARGET&quot;] == DropDownList.ClientID</pre></div></div>

<p>and really, ClientID would not equal the Request either as Request["__EVENTTARGET"] returns this: &#8220;ctl00$Content$DropDownList&#8221;<br />
and my DropDownList.ClientID returns this:<br />
&#8220;ctl00_Content_DropDownList&#8221;</p>
<p>So reading the comments here, I see UniqueID is supposed to be interchangeable.  I replaced ClientID with UniqueID and I get correct returns.</p>
<p>Any reason why my code would be causing the differences here?  Note: I do the check for this in the Page_Load event.  Although I did try in the UpdatePanel&#8217;s PreRender event and the same data was being returned.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-36036</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Tue, 04 Aug 2009 15:44:29 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-36036</guid>
		<description>In the paging scenario, you&#039;ll need to somehow store those fields (e.g. session state or database) and use history points for each page.</description>
		<content:encoded><![CDATA[<p>In the paging scenario, you&#8217;ll need to somehow store those fields (e.g. session state or database) and use history points for each page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sujit</title>
		<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-36033</link>
		<dc:creator>sujit</dc:creator>
		<pubDate>Tue, 04 Aug 2009 07:23:51 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-36033</guid>
		<description>But as i go on adding the history points for each control on the page one after another, the addhistorypoint had added the point for last selected control only. So when i select multiple controls, the add history point restores the state only for the last selected control.</description>
		<content:encoded><![CDATA[<p>But as i go on adding the history points for each control on the page one after another, the addhistorypoint had added the point for last selected control only. So when i select multiple controls, the add history point restores the state only for the last selected control.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-36020</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Fri, 31 Jul 2009 18:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-36020</guid>
		<description>ASP.NET AJAX has a feature to provide browser history support.  Check out &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.web.ui.scriptmanager.addhistorypoint.aspx&quot; rel=&quot;nofollow&quot;&gt;ScriptManager.AddHistoryPoint&lt;/a&gt; for an entry point into that functionality.</description>
		<content:encoded><![CDATA[<p>ASP.NET AJAX has a feature to provide browser history support.  Check out <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.scriptmanager.addhistorypoint.aspx" rel="nofollow">ScriptManager.AddHistoryPoint</a> for an entry point into that functionality.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sujit</title>
		<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-35943</link>
		<dc:creator>sujit</dc:creator>
		<pubDate>Fri, 24 Jul 2009 10:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-35943</guid>
		<description>i have a different kind of problem. When my application redirects to another page and later when i click back button on my browser all the data on my previous page gets cleared which was on the update panel. Where exactly am i missing. Please guide</description>
		<content:encoded><![CDATA[<p>i have a different kind of problem. When my application redirects to another page and later when i click back button on my browser all the data on my previous page gets cleared which was on the update panel. Where exactly am i missing. Please guide</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Are you making these 3 common ASP.NET AJAX mistakes? &#171; Evil Science</title>
		<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-35684</link>
		<dc:creator>Are you making these 3 common ASP.NET AJAX mistakes? &#171; Evil Science</dc:creator>
		<pubDate>Sat, 27 Jun 2009 22:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-35684</guid>
		<description>[...] the full article here, which is featured on the site [...]</description>
		<content:encoded><![CDATA[<p>[...] the full article here, which is featured on the site [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sıfırdan AJAX öğrenebileceğiniz 20 kaynak</title>
		<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-35494</link>
		<dc:creator>Sıfırdan AJAX öğrenebileceğiniz 20 kaynak</dc:creator>
		<pubDate>Sat, 06 Jun 2009 10:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-35494</guid>
		<description>[...] üzerinde çalışan web geliştiricileri için mükemmel bir kaynaktır zira site üzerinde &#8220;Sık yapılan bu 3 ASP.Net AJAX hatasını yapıyor musunuz?&#8221; gibi makaleler de [...]</description>
		<content:encoded><![CDATA[<p>[...] üzerinde çalışan web geliştiricileri için mükemmel bir kaynaktır zira site üzerinde &#8220;Sık yapılan bu 3 ASP.Net AJAX hatasını yapıyor musunuz?&#8221; gibi makaleler de [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-35021</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Tue, 21 Apr 2009 03:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-35021</guid>
		<description>That&#039;s not the behavior I would expect either.</description>
		<content:encoded><![CDATA[<p>That&#8217;s not the behavior I would expect either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renu</title>
		<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-35018</link>
		<dc:creator>Renu</dc:creator>
		<pubDate>Mon, 20 Apr 2009 23:33:27 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-35018</guid>
		<description>I have any update panel set to conditional updateMode with a trigger against a dropdown out side the panel and childrenastriggers as false. I load user controls dynamically on this panel.The user control has one drop down list with autopost back set to true.
On selecting value in the user control drop down my script manager isAsynPostback still comes true. Should&#039;nt this is false as i have childrenastriggers set to false?</description>
		<content:encoded><![CDATA[<p>I have any update panel set to conditional updateMode with a trigger against a dropdown out side the panel and childrenastriggers as false. I load user controls dynamically on this panel.The user control has one drop down list with autopost back set to true.<br />
On selecting value in the user control drop down my script manager isAsynPostback still comes true. Should&#8217;nt this is false as i have childrenastriggers set to false?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 用__doPostBack在client端更新UpdatePanel &#124; Horn Network</title>
		<link>http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-34668</link>
		<dc:creator>用__doPostBack在client端更新UpdatePanel &#124; Horn Network</dc:creator>
		<pubDate>Sun, 29 Mar 2009 14:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/#comment-34668</guid>
		<description>[...] Are you making these 3 common ASP.NET AJAX mistakes? &#124; Encosia [...]</description>
		<content:encoded><![CDATA[<p>[...] Are you making these 3 common ASP.NET AJAX mistakes? | Encosia [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
