The AjaxControlToolkit has Gravatar support built-in.
<ajaxToolkit:Gravatar runat="server"
Email="test@superexpert.com"
Size="200"
Rating="R"
DefaultImageBehavior="Identicon"
DefaultImage="http://tinyurl.com/3bpsaac" />
Of course, this could be programmatically set as well...
Also, if your site provides OAuth login (like Facebook, LinkedIn, etc.) you could also reference those profile images as well using their APIs. Facebooks, for example, would look like:
<asp:Image ImageUrl="http://graph.facebook.com/[fbid]/picture?type=large"
ToolTip="Facebook Avatar"
Width="180"
Height="180" />
replace [fbid]
with their facebook id.