ASP.NET - Datetimepicker 1.1 - Asked By Sangeeta on 29-Feb-12 02:50 PM


I am trying to add a datetime picker to my webform.
Since there wasnt any availble control on toolbox, i went to the add/remove button expaneded to COM controls and added the datetime pciker from there.
Now i am not able to access any properties and the control itself on my form code. the form runs to displa y the date time picker.
am using the right control?
Can someone help please?
smr replied to Sangeeta on 29-Feb-12 10:30 PM

DateTimePicker Web control is similar to the windows DateTimePicker control. The control exposes two properties: the SelectedDate and the FormatType. SelectedDate represents the date user selected and FormatType represents the format in which the date string should be displayed. The demo provided shows the usage of the control.

dipa ahuja replied to Sangeeta on 29-Feb-12 10:39 PM

Then i advice you to take the jquery datetime 

use jquery 

<script src=""></script>  

<script src=""></script>  

<link href="fbox/jquery-ui-1.8.11.custom.css" rel="stylesheet" type="text/css" />

<script src="fbox/jquery.ui.datetimepicker.min.js" type="text/javascript"></script>


<script type="text/javascript">

  $(function () {




<input type="text" id="TextBox1" />




Somesh Yadav replied to Sangeeta on 01-Mar-12 01:33 AM

Check this one:

The above link cotains a demo page which demostrates the funcitonalities of eworld time picker control.They also have a date popup control and other free set of controls.If you click on the download link, you will be asked about the .Net vesion that you want to use and they will give you the suitable version of controls(dlls) which you can then reference them in your .NET 1.1 project and use them in your pages.

The demo pages:

The download link:
Sangeeta replied to smr on 01-Mar-12 08:53 AM

Thank you for the reply. Even though both the links didnt work directly for me. The idea that the coders used behind the codeproject link gave me an idea of what i could do.  Just in case someone else might need it i'll just mention what i did. I used a a text box and a calendar control and a linked label. on load set the visibility of the calendar to false. On click of the link button i dispalyed the calendar just below the textbox as if it was bound. On click i filled in teh date and set visibiltiy of calendar to false.
I have all my controls on a gridlayoutpanel. When you add the calendar the panel by default grows to calendar size there by pushing all the controls below under a blank white space, to fix this i manually edited the html code to set the height of the panel.

thanks everyone.. this forum is great..