<?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: Why ASP.NET AJAX UpdatePanels are dangerous</title>
	<atom:link href="http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Thu, 02 Feb 2012 19:50:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-62411</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Mon, 23 Jan 2012 18:56:28 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-62411</guid>
		<description>Yes, the WebForms Page model is optimized for rapid/easy development, not so much for performance at runtime.

If you use MVC, you can still do something very similar. You can have controller actions that don&#039;t do anything but return some JSON, just like page methods and ScriptServices.

Either way, the key is to use light weight AJAX calls for small bits of information, instead of re-rendering the entire page on the server-side for every interaction.</description>
		<content:encoded><![CDATA[<p>Yes, the WebForms Page model is optimized for rapid/easy development, not so much for performance at runtime.</p>
<p>If you use MVC, you can still do something very similar. You can have controller actions that don&#8217;t do anything but return some JSON, just like page methods and ScriptServices.</p>
<p>Either way, the key is to use light weight AJAX calls for small bits of information, instead of re-rendering the entire page on the server-side for every interaction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roberto Alessi</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-62410</link>
		<dc:creator>Roberto Alessi</dc:creator>
		<pubDate>Mon, 23 Jan 2012 18:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-62410</guid>
		<description>So asp:Button with server side _onclick only for fast development of service pages (user membership management for example)  and only web services/page methods for production pages.
I was only asking a confirmation for this radical change.
I have briefly look at MVC but IMHO is better to work by web services / page methods. 
It is better to work only by web services ? or static page methods are acceptable for private routines that does not need to be public exposed ?
Thanks for your answer.</description>
		<content:encoded><![CDATA[<p>So asp:Button with server side _onclick only for fast development of service pages (user membership management for example)  and only web services/page methods for production pages.<br />
I was only asking a confirmation for this radical change.<br />
I have briefly look at MVC but IMHO is better to work by web services / page methods.<br />
It is better to work only by web services ? or static page methods are acceptable for private routines that does not need to be public exposed ?<br />
Thanks for your answer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-62403</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Mon, 23 Jan 2012 16:28:51 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-62403</guid>
		<description>I would say that avoiding the WebForms Page life cycle is definitely key for scalability and performance. Another option, if you want to stay more on the server-side, is using ASP.NET MVC instead of ASP.NET WebForms.</description>
		<content:encoded><![CDATA[<p>I would say that avoiding the WebForms Page life cycle is definitely key for scalability and performance. Another option, if you want to stay more on the server-side, is using ASP.NET MVC instead of ASP.NET WebForms.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roberto Alessi</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-62255</link>
		<dc:creator>Roberto Alessi</dc:creator>
		<pubDate>Sat, 21 Jan 2012 18:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-62255</guid>
		<description>So in a &quot;real&quot; high traffic site i shoud consider to work only by web services (.asmx files) ? throw away asp:Button with the &quot;onclick&quot; code behind ?</description>
		<content:encoded><![CDATA[<p>So in a &#8220;real&#8221; high traffic site i shoud consider to work only by web services (.asmx files) ? throw away asp:Button with the &#8220;onclick&#8221; code behind ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-57214</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Tue, 27 Dec 2011 01:54:57 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-57214</guid>
		<description>The best thing you can do is to move away from the postbacks instead of trying to work around them on the client-side. A postback is just as slow as the UpdatePanel.

You can use jQuery to &lt;a href=&quot;http://encosia.com/using-complex-types-to-make-calling-services-less-complex/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;send objects to and from the server&lt;/a&gt;, &lt;a href=&quot;http://encosia.com/composition-with-jquery-templates-why-and-how/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;client-side templating to handle rendering&lt;/a&gt;, etc. Relying on the server to drive client-side interaction will always be clunky and slow compared to doing it closer to the user (in the browser).</description>
		<content:encoded><![CDATA[<p>The best thing you can do is to move away from the postbacks instead of trying to work around them on the client-side. A postback is just as slow as the UpdatePanel.</p>
<p>You can use jQuery to <a href="http://encosia.com/using-complex-types-to-make-calling-services-less-complex/" target="_blank" rel="nofollow">send objects to and from the server</a>, <a href="http://encosia.com/composition-with-jquery-templates-why-and-how/" target="_blank" rel="nofollow">client-side templating to handle rendering</a>, etc. Relying on the server to drive client-side interaction will always be clunky and slow compared to doing it closer to the user (in the browser).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumant</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-57013</link>
		<dc:creator>Sumant</dc:creator>
		<pubDate>Mon, 26 Dec 2011 07:32:47 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-57013</guid>
		<description>@Dave

Hi as i had posted this will probably solve my validation problem but do we have anything in jquery so that we can add controls to the page dynamically and i need asp.net controls to be added dynamically on click of a button,so that on postback i can all data from the controls.If you ahve any work around for this do post.</description>
		<content:encoded><![CDATA[<p>@Dave</p>
<p>Hi as i had posted this will probably solve my validation problem but do we have anything in jquery so that we can add controls to the page dynamically and i need asp.net controls to be added dynamically on click of a button,so that on postback i can all data from the controls.If you ahve any work around for this do post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-56624</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Sat, 24 Dec 2011 19:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-56624</guid>
		<description>You can use the jQuery Validation plugin instead pretty easily: http://encosia.com/using-jquery-validation-with-asp-net-webforms/

That&#039;s the approach ASP.NET is moving toward anyway. MVC 3 already uses jQuery Validation and I believe WebForms is moving that direction too in 4.5 or later, using the same unobtrusive wireup approach to bridge the gap between ASP.NET and the jQuery plugin automatically.</description>
		<content:encoded><![CDATA[<p>You can use the jQuery Validation plugin instead pretty easily: <a href="http://encosia.com/using-jquery-validation-with-asp-net-webforms/" rel="nofollow">http://encosia.com/using-jquery-validation-with-asp-net-webforms/</a></p>
<p>That&#8217;s the approach ASP.NET is moving toward anyway. MVC 3 already uses jQuery Validation and I believe WebForms is moving that direction too in 4.5 or later, using the same unobtrusive wireup approach to bridge the gap between ASP.NET and the jQuery plugin automatically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sumant</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-56549</link>
		<dc:creator>sumant</dc:creator>
		<pubDate>Sat, 24 Dec 2011 11:37:32 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-56549</guid>
		<description>@Dave

I had a situation in my project where i had to add controls like textboxses and drop down lists dynamically to the page on the click of a button,i had the jquery clone method with which i could clone controls,but the issue was how could all the data on postback,also i had to apply validators to the dynamic content which was coming on the page,i not only used update panels but also asp.net validators for all controls and i was able to add validators as well as the controls to the page because of the update panel, i cannot see a solution in this case without a update panel,can you tell me how could i have used jquery in this case?</description>
		<content:encoded><![CDATA[<p>@Dave</p>
<p>I had a situation in my project where i had to add controls like textboxses and drop down lists dynamically to the page on the click of a button,i had the jquery clone method with which i could clone controls,but the issue was how could all the data on postback,also i had to apply validators to the dynamic content which was coming on the page,i not only used update panels but also asp.net validators for all controls and i was able to add validators as well as the controls to the page because of the update panel, i cannot see a solution in this case without a update panel,can you tell me how could i have used jquery in this case?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-55872</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Wed, 21 Dec 2011 22:24:46 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-55872</guid>
		<description>You can replace most UpdatePanels with just a few lines of jQuery, not hundreds. That doesn&#039;t address the underlying inefficiency of the partial rendering approach when coupled with ASP.NET&#039;s page life cycle though, so it&#039;s really a moot point either way.</description>
		<content:encoded><![CDATA[<p>You can replace most UpdatePanels with just a few lines of jQuery, not hundreds. That doesn&#8217;t address the underlying inefficiency of the partial rendering approach when coupled with ASP.NET&#8217;s page life cycle though, so it&#8217;s really a moot point either way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-55871</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Wed, 21 Dec 2011 22:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-55871</guid>
		<description>There&#039;s no need to use alerts when you&#039;re debugging JavaScript. Using a tool like Firebug or Chrome&#039;s developer tools (and even IE9&#039;s developer tools aren&#039;t terrible) makes debugging JavaScript very similar to debugging server-side code. You can even debug JavaScript inside of Visual Studio in VS2010, though it&#039;s a bit slower than using the tools built into browsers.</description>
		<content:encoded><![CDATA[<p>There&#8217;s no need to use alerts when you&#8217;re debugging JavaScript. Using a tool like Firebug or Chrome&#8217;s developer tools (and even IE9&#8242;s developer tools aren&#8217;t terrible) makes debugging JavaScript very similar to debugging server-side code. You can even debug JavaScript inside of Visual Studio in VS2010, though it&#8217;s a bit slower than using the tools built into browsers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumant</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-55740</link>
		<dc:creator>Sumant</dc:creator>
		<pubDate>Wed, 21 Dec 2011 10:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-55740</guid>
		<description>I definitely agree with him on this,because if you have tight deadlines you can waste putting alerts and debugging a script.</description>
		<content:encoded><![CDATA[<p>I definitely agree with him on this,because if you have tight deadlines you can waste putting alerts and debugging a script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sumant</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-55739</link>
		<dc:creator>Sumant</dc:creator>
		<pubDate>Wed, 21 Dec 2011 10:36:02 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-55739</guid>
		<description>I think update panel really provides good functionality,it is any way better than writing hundreds of lines of jquery code which is very hard to debug.Also you can use asp.net validators with update panel very easily.</description>
		<content:encoded><![CDATA[<p>I think update panel really provides good functionality,it is any way better than writing hundreds of lines of jquery code which is very hard to debug.Also you can use asp.net validators with update panel very easily.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaw</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-45774</link>
		<dc:creator>Shaw</dc:creator>
		<pubDate>Sun, 11 Sep 2011 17:54:56 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-45774</guid>
		<description>Dave,

Thanks for posting this. I just started developing in ASP.NET and have been using UpdatePanels on most of my pages.

Every tool has its uses and it seems like there are times where in the search for the best possible performance that UpdatePanel isn&#039;t always the right tool.</description>
		<content:encoded><![CDATA[<p>Dave,</p>
<p>Thanks for posting this. I just started developing in ASP.NET and have been using UpdatePanels on most of my pages.</p>
<p>Every tool has its uses and it seems like there are times where in the search for the best possible performance that UpdatePanel isn&#8217;t always the right tool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hardik</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-45418</link>
		<dc:creator>Hardik</dc:creator>
		<pubDate>Mon, 05 Sep 2011 12:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-45418</guid>
		<description>Great post even i am late :(  

is there any way to reduce the page while page haveing gridveiw edit,delete, add functionality and i have put gridview in updatepanel so page dont refresh... 

Hardik J. Desai
Asp.Net,C# Developer.</description>
		<content:encoded><![CDATA[<p>Great post even i am late :(  </p>
<p>is there any way to reduce the page while page haveing gridveiw edit,delete, add functionality and i have put gridview in updatepanel so page dont refresh&#8230; </p>
<p>Hardik J. Desai<br />
Asp.Net,C# Developer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-44198</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Mon, 27 Jun 2011 02:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-44198</guid>
		<description>Great post even 4 years later!

This seems to be a great way to reduce the overhead that comes along with the UpdatePanel. But what about when you need to access data from the page? For example if I have a variable that I&#039;m storing in ViewState or even one that is part of the Page object I would not have access to it because the page methods must be static.

Is there a way to do some intarction with the object using Page Methods and JSON?</description>
		<content:encoded><![CDATA[<p>Great post even 4 years later!</p>
<p>This seems to be a great way to reduce the overhead that comes along with the UpdatePanel. But what about when you need to access data from the page? For example if I have a variable that I&#8217;m storing in ViewState or even one that is part of the Page object I would not have access to it because the page methods must be static.</p>
<p>Is there a way to do some intarction with the object using Page Methods and JSON?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

