I have a page with a ListBoxes, a button to remove the selected item from the box and a button to save. If the listbox is empty, the CustomValidator should be shown, but I can't get it to work properly. When the page posts back, the validation is called first, then the item
is removed and the calls to Page.Validate() and
vldHasLanguages.Validate() seem to be futile, because they don't fire
the validation methods. It seems I need to either cause the button
action to happen first or refire activation.
The code is below:
<asp:ListBox ID="lstSelectedLangs" runat="server" Width="20em" Rows="10"></asp:ListBox>
< Go to the complete details ...