<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Custom Server Controls</title><link>http://forums.asp.net/19.aspx</link><description>All about building ASP.NET server controls. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=12&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: state management in a custom control</title><link>http://forums.asp.net/thread/3261156.aspx</link><pubDate>Fri, 26 Jun 2009 22:57:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3261156</guid><dc:creator>Ambran</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3261156.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=19&amp;PostID=3261156</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;I use ViewState[&amp;quot;key&amp;quot;] regularly in order to save some data localy until page returns.&lt;/p&gt;&lt;p&gt;I usualy create a constant for every key so I get better control of the keys that are sometimes spread throughout the page.&lt;/p&gt;&lt;p&gt;I try not to overload ViewStates with data in order for the page not to be too heavy.&lt;/p&gt;&lt;p&gt;ViewState[&amp;quot;key&amp;quot;] works fine for me. Never manipulated with the SaveViewState and LoadViewState.&lt;/p&gt;&lt;p&gt;Amit&lt;br /&gt;&lt;/p&gt;</description></item><item><title>state management in a custom control</title><link>http://forums.asp.net/thread/3260980.aspx</link><pubDate>Fri, 26 Jun 2009 19:58:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3260980</guid><dc:creator>dsteveso</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3260980.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=19&amp;PostID=3260980</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I am currently modifying a custom control I created awhile ago. &amp;nbsp;When looking at some other examples of viewstate I wondered if I did it correctly. &amp;nbsp;I overrode the SaveViewState and LoadViewState methods. &amp;nbsp;It looks like I could have just used ViewState[&amp;quot;key&amp;quot;] to store everything. &amp;nbsp;Are there any benefits / disadvantages to using LoadViewState / SaveViewState over ViewState[&amp;quot;key&amp;quot;]?&lt;/p&gt;</description></item></channel></rss>