Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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" %>
Advertisement
Add Comment
Please, Sign In to add comment