請輸入一個數字:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
(務必大於一百)<br />
<br />
<asp:CompareValidator ID="CompareValidator1" runat="server"
ControlToValidate="TextBox1" ErrorMessage="CompareValidator,錯誤!務必大於一百!" Operator="GreaterThan" Type="Integer" ValueToCompare="100" ForeColor="Red">
</asp:CompareValidator>
沒有留言:
張貼留言