Afternoon all,
I'm hoping that someone can save me from drink tonight by helping out on this one.
I have a CustomValidator as follows:
<asp:CustomValidator ID="customVal_1" runat="server" ValidateEmptyText="true" ControlToValidate="textBox" ClientValidationFunction="doStuff" OnServerValidate="servLocation" CssClass="validationError" ErrorMessage="error msg."></asp:CustomValidator>
The ClientValidatonFunction "doStuff" isn't fired when the the text box is empty. Any thoughts / workrounds? I'm in the tricky position of needing bespoke validation and as such requiredFieldValidators are not an option. I thought this problem had been fixed on .net 2.0 but I guess not!
For info the doStuff presently just presents an alert which I know is functioning fine.
Thanks for any help.
Rob
I'm hoping that someone can save me from drink tonight by helping out on this one.
I have a CustomValidator as follows:
<asp:CustomValidator ID="customVal_1" runat="server" ValidateEmptyText="true" ControlToValidate="textBox" ClientValidationFunction="doStuff" OnServerValidate="servLocation" CssClass="validationError" ErrorMessage="error msg."></asp:CustomValidator>
The ClientValidatonFunction "doStuff" isn't fired when the the text box is empty. Any thoughts / workrounds? I'm in the tricky position of needing bespoke validation and as such requiredFieldValidators are not an option. I thought this problem had been fixed on .net 2.0 but I guess not!
For info the doStuff presently just presents an alert which I know is functioning fine.
Thanks for any help.
Rob