Asp.Net 4 WebControl to Display Date & Time Picker
I use aspnet 4 and c#. My user need inserting DATE and TIME in a field. The data to pass to DataBase has this format
2011-02-23 10:30:29.27 and DataType: datetime2
I can see in visual studio just a Calendar
WebControl but it is able to handle just the date and not the time.
I found an interested WebControl at: http://demos.telerik.com/aspnet-ajax/calendar/examples/overview/defaultcs.aspx
Specially functuion for Time Picker.
My question do you know any Free/Open source control? If not any other solution WebContro开发者_如何学运维l or not?
Thanks
I don't know if you are willing to use jQuery UI. If you are, Trent Richardson has extended the jQuery UI DatePicker to include a TimePicker.
This might work for you: http://trentrichardson.com/examples/timepicker/
There are a lot of sample on the page so it sould be pretty easy to use and you can wire up to your asp.net backend a number of ways including a static webmethod exposed via a scriptmanager.
Hope this helps.
精彩评论