开发者

Asp.Net 4 WebControl to Display Date & Time Picker

开发者 https://www.devze.com 2023-02-13 11:35 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消