Fluent.ListBoxValidator
The ListBoxValidator checks whether the number of ListItems of a ListBox control is within a specified range.
Code Example
<%@ Register TagPrefix="fluent" Namespace="Fluent" Assembly="Fluent.ListBoxValidator" %>
...
<asp:ListBox ID="ListBoxEmployees" SelectionMode="Multiple" Runat="server"/>
<fluent:ListBoxValidator
ID="ListBoxValidator1"
Runat="server"
ControlToValidate="ListBoxEmployees"
ErrorMessage="Please select an employee"
Minimum="1" Maximum="1"
/>
...
Copyright © 2002-2003 Fluent Consulting. All rights reserved.