TextBox仅允许使用asp.net(HH:mm tt)格式 [英] TextBox allow only (HH:mm tt) format using asp.net
本文介绍了TextBox仅允许使用asp.net(HH:mm tt)格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我在asp.net中有要求。如何允许文本框的小时和分钟。我是asp.net的新手。请给我回复。
高级谢谢..
Hi guys , I have requirement in asp.net . How to allow the textbox hours and minutes . i am new for asp.net . please give me reply.
advanced thanks..
推荐答案
这并不容易,并且几乎不会完美地工作,也不会激怒用户。因此,最好的方法是:使用DateTimePicker
,如此CodeProject库中提供的那样:DateTimePicker Web Control [ ^ ]。
还有一个: http://www.essentialobjects.com/Products/EOWeb/Calendar.aspx [ ^ ]。
这一个最接近TextBox
: http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Calendar/Calendar.aspx [ ^ ]。
可能你会找到其他类似的组件: http://bit.ly/18MIDW3 [ ^ ]。
-SA
This is not easy and will hardly ever work perfectly and not irritate the user. So, the best approach would be this: use theDateTimePicker
like the one provided in this CodeProject library: DateTimePicker Web Control[^].
One more: http://www.essentialobjects.com/Products/EOWeb/Calendar.aspx[^].
And this one is the closest to theTextBox
: http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Calendar/Calendar.aspx[^].
Probably you will be able to find some other available component like that: http://bit.ly/18MIDW3[^].
—SA
这篇关于TextBox仅允许使用asp.net(HH:mm tt)格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文