<?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>Wed, 16 May 2012 23:02:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Presentation &#124; Pearltrees</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-63644</link>
		<dc:creator>Presentation &#124; Pearltrees</dc:creator>
		<pubDate>Tue, 10 Apr 2012 15:30:17 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-63644</guid>
		<description>[...] Simple enough. Button1 is clicked, an asynchronous request is made for the current date/time, and that is displayed as Label1′s content. As simple as it sounds, take a look at the actual HTTP post and response necessary to accomplish the partial postback: protected void Button1_Click ( object sender, EventArgs e ) { Label1. Why ASP.NET AJAX UpdatePanels are dangerous » Encosia [...]</description>
		<content:encoded><![CDATA[<p>[...] Simple enough. Button1 is clicked, an asynchronous request is made for the current date/time, and that is displayed as Label1′s content. As simple as it sounds, take a look at the actual HTTP post and response necessary to accomplish the partial postback: protected void Button1_Click ( object sender, EventArgs e ) { Label1. Why ASP.NET AJAX UpdatePanels are dangerous » Encosia [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ASP.Net PageMethods: invocar código de servidor desde JavaScript &#171; Nathan</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-63338</link>
		<dc:creator>ASP.Net PageMethods: invocar código de servidor desde JavaScript &#171; Nathan</dc:creator>
		<pubDate>Wed, 21 Mar 2012 20:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-63338</guid>
		<description>[...] http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-63337 [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-63337" rel="nofollow">http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-63337</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jhonatan</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-63337</link>
		<dc:creator>jhonatan</dc:creator>
		<pubDate>Wed, 21 Mar 2012 20:24:21 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-63337</guid>
		<description>Check this post: http://jhonatantirado.wordpress.com/2010/11/07/asp-net-pagemethods-invocar-codigo-de-servidor-desde-javascript/
I replaced a GridView with a plain HTML-table, by iterating the JSON result (list of objects).</description>
		<content:encoded><![CDATA[<p>Check this post: <a href="http://jhonatantirado.wordpress.com/2010/11/07/asp-net-pagemethods-invocar-codigo-de-servidor-desde-javascript/" rel="nofollow">http://jhonatantirado.wordpress.com/2010/11/07/asp-net-pagemethods-invocar-codigo-de-servidor-desde-javascript/</a><br />
I replaced a GridView with a plain HTML-table, by iterating the JSON result (list of objects).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jhonatan</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-63336</link>
		<dc:creator>jhonatan</dc:creator>
		<pubDate>Wed, 21 Mar 2012 20:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-63336</guid>
		<description>I care. 
For a webform where you edit/update/insert only one register, UpdatePanels are OK. 
But for showing a big amount of data (paged results) on a site with average 1000 concurrent users, PageMethods and JSON is the solution.
Replacing GridViews/UpdatePanels with a PageMethods/JSON solution, improved my site perfomance (because NO VIEWSTATE = less network traffic).</description>
		<content:encoded><![CDATA[<p>I care.<br />
For a webform where you edit/update/insert only one register, UpdatePanels are OK.<br />
But for showing a big amount of data (paged results) on a site with average 1000 concurrent users, PageMethods and JSON is the solution.<br />
Replacing GridViews/UpdatePanels with a PageMethods/JSON solution, improved my site perfomance (because NO VIEWSTATE = less network traffic).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ASP.NET and Ajax. All about update panels, web methods, page methods and jQuery » Coding Still</title>
		<link>http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/#comment-63077</link>
		<dc:creator>ASP.NET and Ajax. All about update panels, web methods, page methods and jQuery » Coding Still</dc:creator>
		<pubDate>Sun, 26 Feb 2012 14:16:21 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/index.php/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/#comment-63077</guid>
		<description>[...] Why ASP.NET AJAX UpdatePanels are dangerous [...]</description>
		<content:encoded><![CDATA[<p>[...] Why ASP.NET AJAX UpdatePanels are dangerous [...]</p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>

