What's hot ? (and I mean really ...) - scroll down for more
1).  Code Templating - advanced usage of delegates & generics: my slides & demos are available for download! CodeProject article is also available.

2).  My series "TDD in the eyes of a simpleminded" is in progress(including code!): preface, part1, part2, Q&A 1, Manual Stub .vs. Mock Stub

3).  TDD Workshop: SeeCompass v0.1 and v0.2 are out.
# Monday, May 08, 2006

In the previous version of asp.net, v1.1, the CustomValidator did NOT run when the control(e.g TextBox) was empty. Possible solutions were to create your own control (something like RequiredCustomValidator : CustomValidator) or the change WebUIValidation.js file so it will actually validate the control even if it's empty. Now, in the new version, v2.0, you can simply set the ValidateEmptyText to true and you're done. Nice (and useful) !

Thursday, October 05, 2006 9:15:50 AM (Jerusalem Standard Time, UTC+02:00)
Hi there, I m not able to fire the ValidateEmptyText even I have set it to true.

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="TextBox1" ValidateEmptyText="true" ErrorMessage="CustomValidator"></asp:CustomValidator>
<asp:Button ID="Button1" runat="server" Text="Button" CausesValidation="true" />

Any idea? Thank you.
CYT
Thursday, October 05, 2006 9:30:00 PM (Jerusalem Standard Time, UTC+02:00)
It looks good,
Can you send me your page so I can give it another look ?
Comments are closed.