I have many update fields in my application to update SQL Server data type money. I am currently using the following compare validation on each field:
Problem I'm having is when a user keys in a value greater than 922,337,203,685,477.5807, this validation does not catch it and I get the 'Error converting data type nvarchar to money'.
What is the best type of validation control to handle this?
Thanks
Code:
<asp:CompareValidator ID="vUWIncome" runat="server" ControlToValidate="txtUWIncome"
ErrorMessage="CompareValidator" Operator="DataTypeCheck" Type="Double" Width="232px">Please enter numeric value!</asp:CompareValidator>
Problem I'm having is when a user keys in a value greater than 922,337,203,685,477.5807, this validation does not catch it and I get the 'Error converting data type nvarchar to money'.
What is the best type of validation control to handle this?
Thanks