CompareValidator - Data entered into TextBox control is type Currency

Q.  Which validation control in ASP.NET can be used to determine if the data is entered into a TextBox control is of type Currency?
- Published on 27 Jul 15

a. ValidationSummary
b. CompareValidator
c. RequiredFieldValidator
d. None of the above.

ANSWER: CompareValidator
 

    Discussion

  • Brijesh   -Posted on 19 Oct 15
    CompareValidator control can be used to determine if the data is entered into a TextBox control is of type Currency. You can also compare a value against another value by using this control.
    The following type can be compared by CompareValidator control.
    • String
    • Integer
    • Double
    • Date
    • Currency

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)