justin
By: a guest | May 14th, 2008 | Syntax:
None | Size: 0.98 KB | Hits: 470 | Expires: Never
using System;
namespace MAA.Web.UI.WebControls
{
public class MAACalendar : System.Web.UI.WebControls.Calendar
{
public DateTime? SelectedValue
{
get
{
if (this.SelectedValue == null)
base.SelectedDate = DateTime.MinValue;
else
base.SelectedDate = (DateTime)this.SelectedValue;
return this.SelectedValue;
}
set
{
if (value == null)
base.SelectedDate = DateTime.MinValue;
else
base.SelectedDate = (DateTime)value;
this.SelectedValue = value;
}
}
}
}
//to use, drop the library into your bin folder
//then register the tag like this on your aspx page
//<%@ Register
Assembly="MAA.Web"
Namespace="MAA.Web.UI.WebControls"
TagPrefix="MAA:Calendar" %>