Click here to Skip to main content
14,932,407 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi to all.Can anyone plz tell me "how to validate a DropDownList which is inside GridView with the help of Validation Controls but not with javascript or jquery.
Posted
Updated 24-Apr-12 18:53pm
v2

1 solution

Hi,

U can done Validate like Normal Validation
XML
<asp:DropDownList ID="ddlRank" runat="server">
        </asp:DropDownList>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddlRank"
            ErrorMessage="Select a Rank"></asp:RequiredFieldValidator>
        <asp:Button ID="btnSave" runat="server" Text="Save" />


Hope it will Help u
Best Luck
Happy Coding:)
   
Comments
Member 10685549 23-Jun-15 4:56am
   
dfaf
Member 10685549 23-Jun-15 4:56am
   
ddd

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