I am using ASP.NET 1.1 and I'm having problems with my validationsummary and validationcontrols working. On button click, required field validations, etc are not fired. How do I fix this?
Here's the code:
<asp:ValidationSummary id="EsppDataInputValidationSummary" runat="server" Font-Names="Arial" Font-Size="8pt" HeaderText="Please Correct the following error(s):" DisplayMode="List" ShowSummary="True"></asp:ValidationSummary></TD>
<asp:RequiredFieldValidator id="Validator1" runat="server" Font-Size="8pt" Font-Names="Arial"
ControlToValidate="txtPrice" Display="None" ErrorMessage="Please enter the Price"></asp:RequiredFieldValidator>
<asp:textbox onblur="return ValidateLength(this)" style="Z-INDEX: 0; TEXT-ALIGN: right" id="txtPurchasePrice" onkeypress="return IsValidChar(event);" onkeyup="return ValidateLength(this)" runat="server" Width="160px" MaxLength="10"></asp:textbox>
<asp:button id="btnAdd" runat="server" Text="Add"></asp:button>"