Ajax中的MaskedEditExtender仅允许日期,数字但不起作用 [英] MaskedEditExtender in ajax to allow only date ,number but not working
本文介绍了Ajax中的MaskedEditExtender仅允许日期,数字但不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<asp:TextBox ID="TextBox3" runat="server" ReadOnly="True" ></asp:TextBox>
<asp:MaskedEditValidator ID="MaskedEditValidator1" runat="server" ControlExtender="MaskedEditExtender1"
ControlToValidate="TextBox3" Display="Dynamic" EmptyValueMessage="A Date is Required"
InvalidValueMessage="The Date is Invalid" IsValidEmpty="False" TooltipMessage="Please Enter a Date">
</asp:MaskedEditValidator>
<asp:CalendarExtender ID="CalendarExtender2" TargetControlID="TextBox3" runat="server"></asp:CalendarExtender>
<asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server"
Mask="99/99/9999" MaskType="Date" TargetControlID="TextBox3">
</asp:MaskedEditExtender>
在这里不起作用,它允许输入任何内容.
Here not working it allow to enter anything
推荐答案
值得看一下这个Asp.NET博客. ^ ]
It worth to look this Asp.NET blog.MaskedEdit Demonstration[^]
这篇关于Ajax中的MaskedEditExtender仅允许日期,数字但不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文