tags:

views:

272

answers:

0

Hello All,

I have been asked to troubleshoot the following error: Value was either too large or too small for an int32

Here's the code for the textbox:

<asp:TextBox ID="txtQuantity" runat="server" CssClass="txtBox textboxRight" MaxLength="14" Width="70px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtQuantity" Display="Dynamic" ErrorMessage="Required " SetFocusOnError="True" ValidationGroup="vgItem"></asp:RequiredFieldValidator>&nbsp;
<asp:RegularExpressionValidator ID="RangeValidator1" runat="server" ControlToValidate="txtQuantity" Display="Dynamic" ErrorMessage="Invalid Quantity" ValidationExpression="^(?:\d{1,14}|\d{1,11}\.\d\d)$" SetFocusOnError="True"  ></asp:RegularExpressionValidator>

I have checked the code for this page and cannot find any reference to this error message in either the .aspx or .aspx.vb files. The page does register the assemblies FreeTextboxControls and Anthem.

How can I determine if these assemblies are raising this error? Is there a free addin that would help diagnose the source of this specific on page error message? Has anyone used these assemblies and can point me in the proper direction?

Thanks, Sid

related questions