Type Property
Gets or sets the data type of the compare operation. Read/write.
Usage
ASP.NET markup: | <speech:CompareValidator Type="..." /> |
Get value: | ValidationType = CompareValidator.Type; |
Set value: | CompareValidator.Type = ValidationType; |
Data type: | ValidationType |
Required: | No; Default: String |
Remarks
Valid values are String, Integer, Double, Date, and Currency. Default value is String.
Example
<form ID="Form1" method="post" runat="server">
...
<Speech:CompareValidator ID="TestV1" Type="Integer" runat="server"
SemanticItemToValidate="siValue1" Operator="GreaterThan" ValueToCompare="256" >
<Prompt InlinePrompt="Value1 must be greater than 256"></Prompt>
</Speech:CompareValidator>
<Speech:CompareValidator ID="TestV2" Type="String" runat="server"
SemanticItemToValidate="siValue2" Operator="NotEqual" ValueToCompare="txt" >
<Prompt InlinePrompt="Value2 cannot be t x t"></Prompt>
</Speech:CompareValidator>
...
</form>
See Also
CompareValidator Class | CompareValidator Constructor | CompareValidator Members | CompareValidator Properties | CompareValidator Methods | CompareValidator Events | CompareValidator Remarks