C# Class newtelligence.DasBlog.Web.Core.WeblogCalendar

WeblogCalendar is derived from the ASP.NET Calendar control. We need to do this, because we want to modify its style through our templates. Second reason is that only a day that has weblogs entries should be a link. The last reason is that we don't want "hard coded" style, which the base class Calendar does. For example, the color for the NextPrev links is hard coded to 'Black'; unless you explicitely change the ForeColor property ;-)
Inheritance: System.Web.UI.WebControls.Calendar
Afficher le fichier Open project: AArnott/dasblog

Méthodes publiques

Méthode Description
WeblogCalendar ( ) : System

The WeblogCalendar's constructor sets the CssClass properties. These styles are provided through the theme templates.

Méthodes protégées

Méthode Description
Render ( System.Web.UI.HtmlTextWriter writer ) : void

Override the Render method of the base class, because we don't want "hard coded" style.

Private Methods

Méthode Description
DayRenderHandler ( Object source, System.Web.UI.WebControls.DayRenderEventArgs e ) : void
WeblogCalendar_Load ( object sender, EventArgs e ) : void

Method Details

Render() protected méthode

Override the Render method of the base class, because we don't want "hard coded" style.
protected Render ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter System.Web.UI.HtmlTextWriter
Résultat void

WeblogCalendar() public méthode

The WeblogCalendar's constructor sets the CssClass properties. These styles are provided through the theme templates.
public WeblogCalendar ( ) : System
Résultat System