关于Asp.net4.0使用常规exp的时间的问题 [英] Question regarding Asp.net4.0 to use regular exp for time

查看:94
本文介绍了关于Asp.net4.0使用常规exp的时间的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过使用正则表达式验证器控件以hr:min(10:15 am,04:06pm)的格式仅将时间插入文本框.我该怎么做.

I want to insert only time in to the text box in the format of hr:min(10:15am,04:06pm) by using regular expression validator control.how can i do so.

推荐答案

为什么要重新发布?在一个地方关注:关于Asp.net4.0的问题 [ ^ ]

您昨天已经问过这个问题,并得到了答复.从那以后您尝试了什么?
Why a repost? Follow at one place: Question regarding Asp.net4.0[^]

You already asked this yesterday and were answered. What have you tried since then?


尝试通过AjaxControlToolKit
的MaskedEdit控件

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/MaskedEdit/MaskedEdit.aspx [ ^ ]
Try the MaskedEdit control from the AjaxControlToolKit

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/MaskedEdit/MaskedEdit.aspx[^]


尝试使用自定义验证或正则表达式.
http://stackoverflow.com/questions/7966540/trying-to-check- input-textbox-for-time [ ^ ]
Try for Custom Validation or Regular expression, if you are comfortable with it.
http://stackoverflow.com/questions/7966540/trying-to-check-input-textbox-for-time[^]


这篇关于关于Asp.net4.0使用常规exp的时间的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆