For validating user selection in dropdownlist we can use rangevalidator. and values of drop down must be in integer type.
syntax is follows :-
[asp:RangeValidator ID="RVddRegistrationType" runat="server" ControlToValidate="ddRegistrationType" ErrorMessage="Select registration type" Display="None"
MaximumValue="100" MinimumValue="1" Type="Integer"][/asp:RangeValidator]
Thanks
Helpondesk Team
No comments:
Post a Comment