Date and Time picker control in asp.net

Posted by Poster under jQuery on 9/23/2009 | Views : 53478 | Status : [Member] | Replies : 6
I need a Date and Time picker for my asp.net page, how to get it?




Responses

Posted by: Neeks on: 7/21/2010 [Member] Bronze
Posted by: Raja on: 9/23/2009 [Member] Starter

Up
0
Down
There is no ready made control for Time picker, of course we have for Date picker in ASP.NET AJAX Control toolkit.

Look at this example http://milesich.com/tpdemo/, hope this is your exact requirement. View source this page and download all the .js file.

In order to download the theme of the DateTime picker, download it from http://jqueryui.com/download/

Place all the images in "images" subfolder of the folder where you have kept your theme css file.

Hope this will help.

Thanks

Regards,
Raja, USA

Poster, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 9/24/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Raja is Correct , to Creat a DataPicker, you need to use a Calender Control , a TextBox, and a linkButton. Make the Calender Control to be invinsible and when the page load there will only be the textbox and the linkbutton. If the user Clicks on the Link Button, write a code to Show the Calander, and on the selected event of the calender, assign the selected date with a format you want to the textbox and the lastpart set the calender control visibility to false and set the autopostback property of your textbox to true.

Am sorry i will be leaving now. In South Africa(my country) its a Public holiday today, so i went to work because i forgot my cell phone.

Thank you for posting at Dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Poster, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rtpharry on: 9/25/2009 [Member] [MVP] Bronze

Up
0
Down
There is this control which is a free asp.net server control:

http://www.eworldui.net/CustomControls/TimePickerDemo.aspx

It doesnt look as pretty as the jQuery one linked above but it is easier to integrate into asp.net websites if you dont have any previous experience with integrating jquery ui.

You also have the option of adding some css styles to integrate it into your site a little better.

Poster, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kalyaninalluri on: 10/5/2009 [Member] Bronze

Up
0
Down
Hi,

You can check this link

http://www.codeproject.com/KB/aspnet/DateAndTimePicker.aspx

Poster, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 10/5/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
I have 20 Good Articles that i will publish in November and more than 20 Video Tutorials. This Question is answered in one of the Articles and Video Tutorials.

Thank you for posting at DotnetFunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Poster, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response