Click here to Skip to main content
16,018,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am Having Three DropDown In My Page ...how to add validator calloutextender in the requiredfieldvalidator for dropdown ... Pls Help Me



Thanks In Advance

B.Amuthan
Posted

1 solution

try this,



<asp:scriptmanager id="Scriptmanager1" runat="server" xmlns:asp="#unknown">

<asp:dropdownlist id="ddl1" runat="server" xmlns:asp="#unknown">
<asp:listitem>me
<asp:listitem>others
<asp:listitem>select


<asp:requiredfieldvalidator id="rfv1" runat="server" controltovalidate="ddl1" initialvalue="select" xmlns:asp="#unknown">
ErrorMessage="Please Give the Required Field">

<cc1:validatorcalloutextender id="v1" runat="server" targetcontrolid="rfv1" xmlns:cc1="#unknown">




CC1 is the extension that the AjaxLibrary uses
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900