Unlike other list controls, EasyListBox supports the native ASP.NET validators (client and server side).
This example uses a RequiredFieldValidator, as shown in the sample code below.
<ASP:RequiredFieldValidator
id="valOne" ControlToValidate="elbPizzaToppings"
ErrorMessage="You must select a topping!"
Display="Dynamic"
Enabled="true" Runat="server" />
<ELB:EasyListBox id="myListBox" runat="server"
Width="350px" Height="300px" PromptText="Pizza Toppings"
/>
Note: As of version 3.1, EasyListBox is fully integrated with Peter Blum's Professional Validation and More, a full-featured
suite of powerful validation controls.
|