dc

dc

  • NA
  • 663
  • 0

Range validator

Nov 11 2011 11:51 AM

  Can you show me how to use a range validator for the dropdownlist 2010 webform control I listed below? I want 
to make certain a value between 01 and 03 are selected.

Note: I am using a required validator on the web form 2010 control listed below.

<asp:DropDownList id="DropDownList1" runat="server">
  <asp:ListItem Selected="True">Select a number</asp:ListItem>
  <asp:ListItem Value="01" /> 
 <asp:ListItem Value="02" /> 
 <asp:ListItem Value="03" />
  </asp:DropDownList>
 

Answers (1)