Created
February 17, 2014 01:46
-
-
Save mikecole/9043303 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<asp:DropDownList ID="ddlItems" runat="server"> | |
<asp:ListItem Text="<--Select Item-->" Value=""></asp:ListItem> | |
<asp:ListItem Text="Item 1" Value="1"></asp:ListItem> | |
<asp:ListItem Text="Item 2" Value="2"></asp:ListItem> | |
<asp:ListItem Text="Item 3" Value="3"></asp:ListItem> | |
</asp:DropDownList> | |
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="ddlItems" runat="server" ErrorMessage="Please select an item" Text="Please select an item"></asp:RequiredFieldValidator> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment