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
Exibir arquivo Open project: AArnott/dasblog

Public Methods

Method Description
WeblogCalendar ( ) : System

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

Protected Methods

Method 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

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

Method Details

Render() protected method

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
return void

WeblogCalendar() public method

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