I'm trying to validate my input in my textbox so that any values <=0 will pop up an error message box but this is the error message I'm receiving :
Operator '<' cannot be applied to operands of type 'string' and 'double'.
How do I fix this?
I'm trying to validate my input in my textbox so that any values <=0 will pop up an error message box but this is the error message I'm receiving :
Operator '<' cannot be applied to operands of type 'string' and 'double'.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Sep 30, 2014, 9:42 AM
Abhishek KumarPosted Sep 30, 2014, 7:12 AM
Please try with compare validator.
ControlToValidate="TextBox1" ErrorMessage=" number Must be > 0"
Operator="GreaterThan" Type="Integer"
ValueToCompare="0" />
Or You can try wth jquery code.
Munesh SharmaPosted Sep 30, 2014, 6:34 AM