<?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: Reducing ViewState Size</title>
	<atom:link href="http://davybrion.com/blog/2009/09/reducing-viewstate-size/feed/" rel="self" type="application/rss+xml" />
	<link>http://davybrion.com/blog/2009/09/reducing-viewstate-size/</link>
	<description>Trying to walk that thin line between intelligence and ignorance</description>
	<lastBuildDate>Thu, 29 Jul 2010 21:01:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Larry</title>
		<link>http://davybrion.com/blog/2009/09/reducing-viewstate-size/comment-page-1/#comment-41013</link>
		<dc:creator>Larry</dc:creator>
		<pubDate>Thu, 03 Jun 2010 14:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=1593#comment-41013</guid>
		<description>I realize that this post is old, but if it is still being monitored, can someone point me in the right direction to overcome the authors observation: &#039;But you do need to be aware of the fact that using the CompressedStateFormatter when inheriting from SessionPageStatePersister will only result in compressing the little bit of ViewState that is included in the HTML, and not the ViewState that is stored in the HttpSessionState&#039;.  I want to compress the data that is saved in session. Thx.</description>
		<content:encoded><![CDATA[<p>I realize that this post is old, but if it is still being monitored, can someone point me in the right direction to overcome the authors observation: &#8216;But you do need to be aware of the fact that using the CompressedStateFormatter when inheriting from SessionPageStatePersister will only result in compressing the little bit of ViewState that is included in the HTML, and not the ViewState that is stored in the HttpSessionState&#8217;.  I want to compress the data that is saved in session. Thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik O'Leary</title>
		<link>http://davybrion.com/blog/2009/09/reducing-viewstate-size/comment-page-1/#comment-22660</link>
		<dc:creator>Erik O'Leary</dc:creator>
		<pubDate>Tue, 06 Oct 2009 15:17:43 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=1593#comment-22660</guid>
		<description>FYI, I was able to make the compression ratio even better (yours reduced my pages Viewstate from 31% to 13%, but I was able to reduce it to 6-7%) by simply refactoring your code a little bit and removing the unnecessary streamreaders and streamwriters (GZipSteam apparently doesn&#039;t like them!).</description>
		<content:encoded><![CDATA[<p>FYI, I was able to make the compression ratio even better (yours reduced my pages Viewstate from 31% to 13%, but I was able to reduce it to 6-7%) by simply refactoring your code a little bit and removing the unnecessary streamreaders and streamwriters (GZipSteam apparently doesn&#8217;t like them!).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davy Brion</title>
		<link>http://davybrion.com/blog/2009/09/reducing-viewstate-size/comment-page-1/#comment-22510</link>
		<dc:creator>Davy Brion</dc:creator>
		<pubDate>Tue, 08 Sep 2009 13:41:23 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=1593#comment-22510</guid>
		<description>@Luke

very weird... in our case, only one page had a bigger compressed viewstate than uncompressed and it was our LogIn page (which hardly has any viewstate). In other pages, we noticed huge differences, some minor, some moderate, etc...</description>
		<content:encoded><![CDATA[<p>@Luke</p>
<p>very weird&#8230; in our case, only one page had a bigger compressed viewstate than uncompressed and it was our LogIn page (which hardly has any viewstate). In other pages, we noticed huge differences, some minor, some moderate, etc&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://davybrion.com/blog/2009/09/reducing-viewstate-size/comment-page-1/#comment-22509</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Tue, 08 Sep 2009 13:28:41 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=1593#comment-22509</guid>
		<description>I tried this out on a test version of a production site and I&#039;ve yet to find a page that has a smaller viewstate compressed than uncompressed...

I got closer to the normal viewstate size by using a binary formatter and gzip compression, but it was still larger than uncompressed. Am I doing something wrong or are other people finding this too? Its an ASP.NET 2 site.</description>
		<content:encoded><![CDATA[<p>I tried this out on a test version of a production site and I&#8217;ve yet to find a page that has a smaller viewstate compressed than uncompressed&#8230;</p>
<p>I got closer to the normal viewstate size by using a binary formatter and gzip compression, but it was still larger than uncompressed. Am I doing something wrong or are other people finding this too? Its an ASP.NET 2 site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davy Brion</title>
		<link>http://davybrion.com/blog/2009/09/reducing-viewstate-size/comment-page-1/#comment-22491</link>
		<dc:creator>Davy Brion</dc:creator>
		<pubDate>Sun, 06 Sep 2009 10:42:21 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=1593#comment-22491</guid>
		<description>@Jaime

search the post for &quot;In case you&#039;re wondering: why should i use this instead of using typical HTTP compression on the IIS level?&quot; ;)</description>
		<content:encoded><![CDATA[<p>@Jaime</p>
<p>search the post for &#8220;In case you&#8217;re wondering: why should i use this instead of using typical HTTP compression on the IIS level?&#8221; <img src='http://davybrion.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davy Brion</title>
		<link>http://davybrion.com/blog/2009/09/reducing-viewstate-size/comment-page-1/#comment-22488</link>
		<dc:creator>Davy Brion</dc:creator>
		<pubDate>Sun, 06 Sep 2009 10:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=1593#comment-22488</guid>
		<description>@Shou

i didn&#039;t know about those methods, and they certainly seem like a fine solution :)</description>
		<content:encoded><![CDATA[<p>@Shou</p>
<p>i didn&#8217;t know about those methods, and they certainly seem like a fine solution <img src='http://davybrion.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaime</title>
		<link>http://davybrion.com/blog/2009/09/reducing-viewstate-size/comment-page-1/#comment-22483</link>
		<dc:creator>Jaime</dc:creator>
		<pubDate>Sun, 06 Sep 2009 04:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=1593#comment-22483</guid>
		<description>Is there any advantage of using this method against using gzip at IIS level (since IIS will gzip the html with the viewstate in it). Are the advantages in using both?</description>
		<content:encoded><![CDATA[<p>Is there any advantage of using this method against using gzip at IIS level (since IIS will gzip the html with the viewstate in it). Are the advantages in using both?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shou Takenaka</title>
		<link>http://davybrion.com/blog/2009/09/reducing-viewstate-size/comment-page-1/#comment-22478</link>
		<dc:creator>Shou Takenaka</dc:creator>
		<pubDate>Sat, 05 Sep 2009 17:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=1593#comment-22478</guid>
		<description>If you use LoadPageStateFromPersistenceMedium() and SavePageStateToPersistenceMedium(), I think your implementation would be simpler (e.g. &lt;a href=&quot;http://www.bloggingdeveloper.com/post/How-To-Compress-ViewState-in-ASPNET-20-ViewState-Compression-with-SystemIOCompression.aspx&quot; title=&quot;How To: Compress ViewState in ASP.NET 2.0 - ViewState Compression with System.IO.Compression&quot; rel=&quot;nofollow&quot;&gt;How To: Compress ViewState in ASP.NET 2.0&lt;/a&gt;).

Do these method not meet your needs ?</description>
		<content:encoded><![CDATA[<p>If you use LoadPageStateFromPersistenceMedium() and SavePageStateToPersistenceMedium(), I think your implementation would be simpler (e.g. <a href="http://www.bloggingdeveloper.com/post/How-To-Compress-ViewState-in-ASPNET-20-ViewState-Compression-with-SystemIOCompression.aspx" title="How To: Compress ViewState in ASP.NET 2.0 - ViewState Compression with System.IO.Compression" rel="nofollow">How To: Compress ViewState in ASP.NET 2.0</a>).</p>
<p>Do these method not meet your needs ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davy Brion</title>
		<link>http://davybrion.com/blog/2009/09/reducing-viewstate-size/comment-page-1/#comment-22444</link>
		<dc:creator>Davy Brion</dc:creator>
		<pubDate>Thu, 03 Sep 2009 14:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=1593#comment-22444</guid>
		<description>It&#039;s definitely an option, though it might be a bit extreme.  I also considered it, but i&#039;d rather not do that unless it&#039;s absolutely necessary.

I&#039;d do the cleanup in some maintenance plan instead of some asynchronous event though</description>
		<content:encoded><![CDATA[<p>It&#8217;s definitely an option, though it might be a bit extreme.  I also considered it, but i&#8217;d rather not do that unless it&#8217;s absolutely necessary.</p>
<p>I&#8217;d do the cleanup in some maintenance plan instead of some asynchronous event though</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://davybrion.com/blog/2009/09/reducing-viewstate-size/comment-page-1/#comment-22442</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 03 Sep 2009 13:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=1593#comment-22442</guid>
		<description>Any thought about storing the viewstate in a database? I realize this creates extra round trips to the database for the viewstate on each page, but the round trip should be less then downloading and uploading the viewstate even in compressed form.  A cleanup routine could be fired Asynchronously with each request to remove expired viewstates or part of a server maintenance plan.</description>
		<content:encoded><![CDATA[<p>Any thought about storing the viewstate in a database? I realize this creates extra round trips to the database for the viewstate on each page, but the round trip should be less then downloading and uploading the viewstate even in compressed form.  A cleanup routine could be fired Asynchronously with each request to remove expired viewstates or part of a server maintenance plan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davy Brion</title>
		<link>http://davybrion.com/blog/2009/09/reducing-viewstate-size/comment-page-1/#comment-22436</link>
		<dc:creator>Davy Brion</dc:creator>
		<pubDate>Wed, 02 Sep 2009 16:56:29 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=1593#comment-22436</guid>
		<description>i actually mentioned the SessionPageStatePersister in the post ;)

and storing all of the ViewState in the session isn&#039;t very good either... by default, it holds a queue of the last 9 ViewStates per user... if you get a lot of concurrent users, and you have a lot of ViewState, the memory overhead will be pretty big.  Especially since the session memory won&#039;t be removed until the session timeout is reached which is about 20 minutes (i think that&#039;s the default setting) _after_ a user&#039;s last action on your site.</description>
		<content:encoded><![CDATA[<p>i actually mentioned the SessionPageStatePersister in the post <img src='http://davybrion.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>and storing all of the ViewState in the session isn&#8217;t very good either&#8230; by default, it holds a queue of the last 9 ViewStates per user&#8230; if you get a lot of concurrent users, and you have a lot of ViewState, the memory overhead will be pretty big.  Especially since the session memory won&#8217;t be removed until the session timeout is reached which is about 20 minutes (i think that&#8217;s the default setting) _after_ a user&#8217;s last action on your site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Pursglove</title>
		<link>http://davybrion.com/blog/2009/09/reducing-viewstate-size/comment-page-1/#comment-22434</link>
		<dc:creator>Phil Pursglove</dc:creator>
		<pubDate>Wed, 02 Sep 2009 14:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=1593#comment-22434</guid>
		<description>If you think that&#039;s good, have a look at the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.web.ui.sessionpagestatepersister.aspx&quot; rel=&quot;nofollow&quot;&gt;SessionPageStatePersister&lt;/a&gt;  which holds all your ViewState/ControlState in session on the web server and doesn&#039;t transmit it to the client at all...</description>
		<content:encoded><![CDATA[<p>If you think that&#8217;s good, have a look at the <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.sessionpagestatepersister.aspx" rel="nofollow">SessionPageStatePersister</a>  which holds all your ViewState/ControlState in session on the web server and doesn&#8217;t transmit it to the client at all&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #424</title>
		<link>http://davybrion.com/blog/2009/09/reducing-viewstate-size/comment-page-1/#comment-22428</link>
		<dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #424</dc:creator>
		<pubDate>Wed, 02 Sep 2009 07:26:40 +0000</pubDate>
		<guid isPermaLink="false">http://davybrion.com/blog/?p=1593#comment-22428</guid>
		<description>[...] Reducing ViewState Size - Davy Brion shows how you can replace the StateFormatter implementation with your own implementation to give you control over the output of the viewstate of an ASP.NET page, allowing you to do things like compression to reduce size [...]</description>
		<content:encoded><![CDATA[<p>[...] Reducing ViewState Size &#8211; Davy Brion shows how you can replace the StateFormatter implementation with your own implementation to give you control over the output of the viewstate of an ASP.NET page, allowing you to do things like compression to reduce size [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
