This is a migrated thread and some comments may be shown as answers.

Required Field Validator for List Box in ascx.cs

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sanjeev
Top achievements
Rank 1
sanjeev asked on 16 Feb 2009, 02:58 PM
I have listbox in ascx .cs where i used required field validator for that...i have problem in validator,after insertion of record it shows validator message for that listbox alone...there are other fileds like textbox,dropdown and i used validator for tht but there is no problem in that..


 

<asp:ListBox ID="lstActor" runat="server" CssClass="ComboBox" Width="95%" DataTextField="ArtistName"

 

 

DataValueField="ArtistID" SelectionMode="Multiple"></asp:ListBox>

 

 

<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ControlToValidate="lstActor"

 

 

ErrorMessage="Please Select Actor" Text="*"></asp:RequiredFieldValidator>


 

<

asp:ValidationSummary runat="server" ID="ValidationSummary" HeaderText="Please correct the following errors:" />

 

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 17 Feb 2009, 11:56 AM
Hello sanjeev,

How this is related to RadGrid? Please clarify.

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
sanjeev
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or