<com:TContent ID="Content"> <style type="text/css"> /*<![CDATA[*/ .defect { color: #c00; font-size: 1.15em; } body { font-family: Georgia, "Times New Roman", Times, serif; } .w3c { margin-top: 2em; display: block; } .required { border: 1px solid red; background-color: pink; } /*]]>*/ </style> <div> <div class="lista"> <com:TCheckBoxList ID="list1" RepeatLayout="Raw"> <com:TListItem Value="1" Text="One" /> <com:TListItem Value="2" Text="Two" /> <com:TListItem Value="3" Text="Three" /> <com:TListItem Value="4" Text="Four" /> </com:TCheckBoxList> <com:TListControlValidator ID="validator1" ControlToValidate="list1" ErrorMessage="Must select at least 1 and no more than 3" ControlCssClass="required" MinSelection="1" MaxSelection="3" /> </div> <div> <com:TListBox ID="list2" SelectionMode="Multiple" Rows="5" Style="width:10em;"> <com:TListItem Value="1" Text="One" /> <com:TListItem Value="2" Text="Two" /> <com:TListItem Value="3" Text="Three" /> <com:TListItem Value="4" Text="Four" /> <com:TListItem Value="5" Text="Five" /> </com:TListBox> <com:TListControlValidator ID="validator2" ControlToValidate="list2" ErrorMessage='Must select at least 2 and no more than 3 and value "two"' MinSelection="2" MaxSelection="3" ControlCssClass="required" RequiredSelections="2" /> </div> <div class="lista"> <com:TRadioButtonList ID="list3" RepeatLayout="Raw"> <com:TListItem Value="1" Text="One" /> <com:TListItem Value="2" Text="Two" /> <com:TListItem Value="3" Text="Three" /> <com:TListItem Value="4" Text="Four" /> </com:TRadioButtonList> <com:TListControlValidator ID="validator3" ControlToValidate="list3" ErrorMessage="Must select at least 1" ControlCssClass="required" MinSelection="1"/> </div> <com:TButton ID="submit1" Text="Test" /> </div> </com:TContent>