- 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" %>
Posted by justin on Wed 14 May 21:52
report abuse | download | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.