Registering the date picker control
To use the date picker control on Sitefinity pages, you must register it in the Toolbox. Perform the following:
-
Add a reference to the date picker control in the Sitefinity project.
You add a reference in the following way:
-
Open the bin » Debug folder of the DatePicker project.
-
Copy DatePicker.dll.
-
Open the bin folder of the Sitefinity project.
-
Paste DatePicker.dll.
-
Register the control.
You register the control in the Sitefinity Toolbox in the following way:
-
Go to Sitefinity’s backend (http://<yoursite>/sitefinity).
- In the main menu in the upper part of the screen, click Administration » Settings.
- Go to the Advanced settings by clicking on the Advanced link.
- In the treeview on the left, select Toolboxes » Toolboxes » PageControls » Sections.
- To add a new section for your custom controls, click Create New.
- In the Name field and in the Title field, enter Custom.
- Click Save changes.
- In the treeview on the left, select Custom » Tools.
- To register your control, click Create New.
-
In the ControlType field, enter DatePicker.DatePickerField.
This is the type of the control in the assembly.
- In the Name field, enter DatePicker.
-
In the Title field, enter Date Picker.
- Click Save changes.
The date picker control is now registered in Sitefinity toolbox. You can drop it on a page and see how it performs. For more information, see Using the date picker control.