Gravatar wrapper for ASP.NET MVC
Latest commit 8a8017f Apr 24, 2012 @runeborg Updated
Failed to load latest commit information.
Gravatar.cs Cleaned up and added some comments Apr 24, 2012 Updated Apr 24, 2012


Gravatar wrapper for ASP.NET MVC. Feel free to use it any way you want.


<img src="@Url.Gravatar("", 100)" alt="" /> <!-- Displays a Gravatar for with a size of 100x100 pixels -->
<img src="@Url.Gravatar("", 100, DefaultGravatar.Wavatar, GravatarRating.G)" alt="" /> <!-- Displays a 100x100 generated Wavatar if the Gravatar does not exist as a G-rated image -->
<img src="@Url.GravatarGenerator("").Size(100).DefaultImage(DefaultGravatar.Wavatar).Rating(GravatarRating.G).Url" alt="" /> <!-- Same as above -->
<img src="@Url.GravatarGenerator("").Size(100).DefaultImage(DefaultGravatar.Wavatar).Rating(GravatarRating.G).AppendFileType().Url" alt="" /> <!-- Same as above but appends .jpg to the image name -->