System.Web 1.0.5000.0 2.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Object

Although data binding is not supported for the control, it is possible to modify the content and formatting of the individual date cells. Before the control is displayed on the Web page, it creates and assembles the components that make up the control. The event is raised when each date cell in the control is created. You can control the contents and formatting of a date cell when it is created by providing code in the event handler for the event.

The event handler receives a object that contains event data. Use the property to access the cell being rendered. To access the properties of the day being rendered, use the property. When customizing the content for a cell, you might want to preserve the postback behavior when the user selects the date being rendered. This is typically done by rendering the script used to post the page as part of the custom content. To retrieve the script used to post the page back to the server, use the property.

For a list of initial property values for an instance of , see the constructor.

For more information about handling events, see Consuming Events.

Provides data for the event of the control. This class cannot be inherited.

- Constructor

  Use this constructor to create and initialize a new instance of the class.

  When an instance of is created by a call to this constructor, the properties shown in the following table are initialized to the specified values.

  Property

  Initial value

  The value of the parameter.

  The value of the parameter.

  This constructor is used primarily by control developers.

  Initializes a new instance of the class using the specified cell and calendar day.

  A that represents a cell in the .
  A that represents the day to render in the .
  1.0.5000.0
  2.0.0.0
- Constructor
  2.0.0.0

  Use this constructor to create and initialize a new instance of the class.

  When an instance of is created by a call to this constructor, the properties shown in the following table are initialized to the specified values.

  Property

  Initial value

  The value of the parameter.

  The value of the parameter.

  The value of the parameter.

  This constructor is used primarily by control developers.

  Initializes a new instance of the class using the specified cell, calendar day, and selection URL.

  A that represents a cell in the .
  A that represents the day to render in the .
  The script used to post the page back to the server when the user selects the date being rendered.
- Property
  System.Web.UI.WebControls.TableCell To be added: an object of type 'TableCell'

  Use the property to programmatically control the cell being rendered in the control.

  You can customize the contents of a cell by dynamically adding controls to the collection of the property.

  Because the event is raised while the control is being rendered, you cannot add a control that can also raise an event, such as . You can add only static controls, such as , , , and .

  Gets the object that represents the cell being rendered in the control.

  1.0.5000.0
  2.0.0.0
- Property
  System.Web.UI.WebControls.CalendarDay To be added: an object of type 'CalendarDay'

  Use the property to get information about the day being rendered in the control.

  Gets the object that represents the day being rendered in the control.

  1.0.5000.0
  2.0.0.0
- Property
  2.0.0.0
  System.String To be added.

  Use the property to retrieve the script used to post the page back to the server when the date being rendered is selected in a control. This property is typically used when you want to customize the content rendered for a date, but still want to retain the postback behavior.

  Gets the script used to post the page back to the server when the date being rendered is selected in a control.