pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

pastebin - collaborative debugging tool View Help


Posted by justin on Wed 14 May 21:52
report abuse | download | new post

  1. using System;
  2.  
  3. namespace MAA.Web.UI.WebControls
  4. {
  5.     public class MAACalendar : System.Web.UI.WebControls.Calendar
  6.     {
  7.         public DateTime? SelectedValue
  8.         {
  9.             get
  10.             {
  11.                 if (this.SelectedValue == null)
  12.                     base.SelectedDate = DateTime.MinValue;
  13.                 else
  14.                     base.SelectedDate = (DateTime)this.SelectedValue;
  15.                
  16.                 return this.SelectedValue;
  17.             }
  18.             set
  19.             {
  20.                 if (value == null)
  21.                     base.SelectedDate = DateTime.MinValue;
  22.                 else
  23.                     base.SelectedDate = (DateTime)value;
  24.                 this.SelectedValue = value;
  25.             }
  26.         }
  27.     }
  28. }
  29.  
  30.  
  31. //to use, drop the library into your bin folder
  32. //then register the tag like this on your aspx page
  33. //<%@ Register
  34.     Assembly="MAA.Web"
  35.     Namespace="MAA.Web.UI.WebControls"
  36.     TagPrefix="MAA:Calendar" %>

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.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me