復(fù)制代碼 代碼如下:
<asp:TextBox runat="server"></asp:TextBox>
<asp:RegularExpressionValidator runat="server" ControlToValidate="txtWeiDu" Display="None" ErrorMessage="請(qǐng)輸入數(shù)字!" ValidationExpression="^(-|/+)?/d+(/./d+)?$"></asp:RegularExpressionValidator>
<!--TargetControlID屬性制定要呼出提醒信息的驗(yàn)證控件ID-->
<cc1:ValidatorCalloutExtender runat="server" TargetControlID="RegularExpressionValidator1"> </cc1:ValidatorCalloutExtender>
新聞熱點(diǎn)
疑難解答
圖片精選