Ajax contorl toolkit Gravatar Demonstration
The Gravatar control is an ASP.NET AJAX control that enables you to use gravatar images on your web forms. A gravatar
is a "Globally Recognized Avatar" provided by Gravatar.com.
This control is extremely simple to use. The only required property which you need to set is your email.
In addition, you can specify the requested size of the image, required rating, default image, and default image behavior.
You can use the DefaultImageBehavior property to control what happens when an email account does not have an associated gravatar. The
possible options are:
- MysteryMan — The same image of a Mystery Man (an anonymous profile of a man) is displayed for all unrecognized emails.
- Identicon — A different geometric pattern is generated for each unrecognized email.
- MonsterId — A different image of a monster is generated for each unrecognized email.
- Wavatar — A different image of a face is generated for each unrecognized email.
- Retro — A different 8-bit arcade-style face is generated for each unrecognized email.
Alternatively, you can specify a custom default image by setting the DefaultImage property to point at an absolute URL.
The first sample above is initialized with this code. The italic properties
are optional:
<ajaxToolkit:Gravatar runat="server"
Email="test@superexpert.com"
Size="200"
Rating="R"
DefaultImageBehavior="Identicon"
DefaultImage="http://tinyurl.com/3bpsaac" />
- Email - email that is associated with account at gravatar.
- Size - The requested size of the image that gravatar needs to render (both width and height).
- Rating - Acceptable rating of the image to display.
- DefaultImageBehavior - The image displayed when a gravater is not associated with an email account. Possible values are Identicon, MonsterId, MysteryMan, Retro, Wavatar
- DefaultImage - Url of the image, that will be diplayed, if the gravatar image can't be displayed because of inacceptable rating or the email account
is not associated with a gravatar. This must be an absolute URL.
Ajax control toolkit Gravatar example with demo in asp .net
In this asp .net tuotiral you will learn about
ajax control toolkit Gravatar,ajax control toolkit Gravatar Extender,ajax control toolkit pie chart sample,ajax control toolkit Gravatar Demo,ajax control toolkit Gravatar with database,ajax control toolkit Gravatar tutorial