


<?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: ASP.NET Gravatar Control Update &#8211; Full Source Included</title>
	<atom:link href="http://www.freshclickmedia.com/blog/2008/06/aspnet-gravatar-control-update-full-source-included/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.freshclickmedia.com/blog/2008/06/aspnet-gravatar-control-update-full-source-included/</link>
	<description></description>
	<lastBuildDate>Tue, 09 Mar 2010 21:03:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: King Wilder</title>
		<link>http://www.freshclickmedia.com/blog/2008/06/aspnet-gravatar-control-update-full-source-included/comment-page-1/#comment-6408</link>
		<dc:creator>King Wilder</dc:creator>
		<pubDate>Sat, 19 Sep 2009 01:10:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.freshclickmedia.com/?p=88#comment-6408</guid>
		<description>I just tried your control on my ASP.NET MVC application is it works flawlessly!  Great job!  When I&#039;m done with the site you&#039;ll be added to the contributors. (By the way, it&#039;s not being used on MVC Starter Kits)  Thanks.</description>
		<content:encoded><![CDATA[<p>I just tried your control on my ASP.NET MVC application is it works flawlessly!  Great job!  When I&#8217;m done with the site you&#8217;ll be added to the contributors. (By the way, it&#8217;s not being used on MVC Starter Kits)  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren</title>
		<link>http://www.freshclickmedia.com/blog/2008/06/aspnet-gravatar-control-update-full-source-included/comment-page-1/#comment-6334</link>
		<dc:creator>Darren</dc:creator>
		<pubDate>Mon, 14 Sep 2009 16:27:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.freshclickmedia.com/?p=88#comment-6334</guid>
		<description>Thanks for this, worked a treat.</description>
		<content:encoded><![CDATA[<p>Thanks for this, worked a treat.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://www.freshclickmedia.com/blog/2008/06/aspnet-gravatar-control-update-full-source-included/comment-page-1/#comment-5961</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Fri, 14 Aug 2009 08:15:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.freshclickmedia.com/?p=88#comment-5961</guid>
		<description>@Ezequiel - Sorry to hear that you&#039;re having problems with the control.

I tried putting the control in a formview, and couldn&#039;t reproduce the error you mention.

Just to let you know, I created an object data source, which exposed several email addresses.  This object data source was the data source for the form view control, and this form view control had a Gravatar control in it.  I was able to page through the records without an issue.

Would you mind going into a little more detail?</description>
		<content:encoded><![CDATA[<p>@Ezequiel &#8211; Sorry to hear that you&#8217;re having problems with the control.</p>
<p>I tried putting the control in a formview, and couldn&#8217;t reproduce the error you mention.</p>
<p>Just to let you know, I created an object data source, which exposed several email addresses.  This object data source was the data source for the form view control, and this form view control had a Gravatar control in it.  I was able to page through the records without an issue.</p>
<p>Would you mind going into a little more detail?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ezequiel Bertti</title>
		<link>http://www.freshclickmedia.com/blog/2008/06/aspnet-gravatar-control-update-full-source-included/comment-page-1/#comment-5937</link>
		<dc:creator>Ezequiel Bertti</dc:creator>
		<pubDate>Wed, 12 Aug 2009 06:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.freshclickmedia.com/?p=88#comment-5937</guid>
		<description>BIG ERROR!!!

System.Exception: Email should not be null or empty

But is not empty or NULL!!! this exception is throw when button click event is fired in FORMVIEW

i did go in degug to see if have email and it is there!!! please, help me...</description>
		<content:encoded><![CDATA[<p>BIG ERROR!!!</p>
<p>System.Exception: Email should not be null or empty</p>
<p>But is not empty or NULL!!! this exception is throw when button click event is fired in FORMVIEW</p>
<p>i did go in degug to see if have email and it is there!!! please, help me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amgad Suliman</title>
		<link>http://www.freshclickmedia.com/blog/2008/06/aspnet-gravatar-control-update-full-source-included/comment-page-1/#comment-3112</link>
		<dc:creator>Amgad Suliman</dc:creator>
		<pubDate>Mon, 12 Jan 2009 18:44:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.freshclickmedia.com/?p=88#comment-3112</guid>
		<description>Thank you, I was looking for this code.</description>
		<content:encoded><![CDATA[<p>Thank you, I was looking for this code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Weston</title>
		<link>http://www.freshclickmedia.com/blog/2008/06/aspnet-gravatar-control-update-full-source-included/comment-page-1/#comment-3067</link>
		<dc:creator>Paul Weston</dc:creator>
		<pubDate>Tue, 06 Jan 2009 21:36:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.freshclickmedia.com/?p=88#comment-3067</guid>
		<description>Thanks Shane for this control, and thanks Kenneth for posting the solution to the viewstate problem.</description>
		<content:encoded><![CDATA[<p>Thanks Shane for this control, and thanks Kenneth for posting the solution to the viewstate problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Perri Nelson</title>
		<link>http://www.freshclickmedia.com/blog/2008/06/aspnet-gravatar-control-update-full-source-included/comment-page-1/#comment-2324</link>
		<dc:creator>Perri Nelson</dc:creator>
		<pubDate>Fri, 21 Nov 2008 19:11:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.freshclickmedia.com/?p=88#comment-2324</guid>
		<description>I like this control. The source code is very clean and easily adaptable. I modified it only slightly to support ASP.NET 1.1 (my web site has been running on that for years) and am now using it on my Blog.

Thanks for making this available.</description>
		<content:encoded><![CDATA[<p>I like this control. The source code is very clean and easily adaptable. I modified it only slightly to support ASP.NET 1.1 (my web site has been running on that for years) and am now using it on my Blog.</p>
<p>Thanks for making this available.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://www.freshclickmedia.com/blog/2008/06/aspnet-gravatar-control-update-full-source-included/comment-page-1/#comment-498</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Fri, 01 Aug 2008 07:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.freshclickmedia.com/?p=88#comment-498</guid>
		<description>Thanks for your comment Kenneth.  I&#039;ll make the changes to my posted source when I get the chance, and credit you with the change.</description>
		<content:encoded><![CDATA[<p>Thanks for your comment Kenneth.  I&#8217;ll make the changes to my posted source when I get the chance, and credit you with the change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kenneth Courtney</title>
		<link>http://www.freshclickmedia.com/blog/2008/06/aspnet-gravatar-control-update-full-source-included/comment-page-1/#comment-495</link>
		<dc:creator>Kenneth Courtney</dc:creator>
		<pubDate>Thu, 31 Jul 2008 20:08:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.freshclickmedia.com/?p=88#comment-495</guid>
		<description>First, thanks for posting your great source! 

Second, I found that when this control was in a aspListView and the listview was posted back, the Email property wasn&#039;t getting set because it was databound. 

I added the following code to the Gravatar class and now the email property is saved in viewstate :):


      protected override object SaveViewState()
        {
            return new Pair(base.SaveViewState(), _email );
        }

        protected override void LoadViewState(object savedState)
        {
            if (savedState != null)
            {
                Pair state = savedState as System.Web.UI.Pair;
                if(state != null)
                {
                    base.LoadViewState(state.First);
                    _email = (string)state.Second;
                }
            }
        }</description>
		<content:encoded><![CDATA[<p>First, thanks for posting your great source! </p>
<p>Second, I found that when this control was in a aspListView and the listview was posted back, the Email property wasn&#8217;t getting set because it was databound. </p>
<p>I added the following code to the Gravatar class and now the email property is saved in viewstate :):</p>
<p>      protected override object SaveViewState()<br />
        {<br />
            return new Pair(base.SaveViewState(), _email );<br />
        }</p>
<p>        protected override void LoadViewState(object savedState)<br />
        {<br />
            if (savedState != null)<br />
            {<br />
                Pair state = savedState as System.Web.UI.Pair;<br />
                if(state != null)<br />
                {<br />
                    base.LoadViewState(state.First);<br />
                    _email = (string)state.Second;<br />
                }<br />
            }<br />
        }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
