This project is read-only.
Project Description
Gravatar Image WebControl enables your ASP.NET website to display Gravatar picture with size, rating and default image option.

What is a gravatar?
A gravatar, or globally recognized avatar, is quite simply an image that follows you from site to site appearing beside your name when you do things. Avatars help identify your posts on blogs and web forums, so why not on any site?

More information on http://www.gravatar.com

How to use it in your ASP.NET project?

1. Add the library as a control provider in the web.config file

<system.web>
    <page>
        <controls>
            <add tagPrefix="custom" namespace="GravatarControl" assembly="GravatarControl"/>
        </controls>
    </pages>
</system.web>


2. Add the control on your page

<custom:Gravatar ID="UserGravatar" runat="server" Email='<%# Eval("Email") %>' Size="120" />


And that's it! Enjoy displaying gravatars on your web site!

Documentation

The gravatar control supports several properties to customize it.
  • Email: specify the e-mail used to fetch the right picture. This property is bindable.
  • Size: you can specify a size between 1 and 512 (pixels.) The default size of 80 pixels.
  • Rating: you can specify a rating of G, PG, R, or X. The default rating of G.
  • DefaultImage: you can specify a default image. There are "special" values that you may pass to this parameter which produce dynamic default images. These are "identicon" "monsterid" and "wavatar". If omitted it will serve up the Gravatar default image, the blue G.

Last edited Feb 20, 2009 at 10:29 AM by fvilers, version 6