Samples

 

Basic Date Picker : Dynamic Creation

Example

TextBoxAndButton

TextBoxAndHyperLink

Calendar

TextBoxAndImage

TextBox

LabelAndButton

20-Oct-2017

LabelAndHyperLink

20-Oct-2017Calendar

LabelAndImage

20-Oct-2017

Label

20-Oct-2017

Button

HyperLink

20-Oct-2017

Image

Remarks

This sample demonstrates how to dynamically create Basic Date Picker controls and set various Properties from the Code-behind. In general if any ASP.NET web controls are created dynamically they should be created early in the page event hierarchy. The OnInit Event is used here to dynamically create the controls.

Each example renders as a different DisplayType and each SelectedDate property is set to Today.

 

Download sample

Download Basic Date Picker Trial

See Also

DisplayType