I have a drop down list on a page, by default the option that is displayed is 'Please Select One'.At the moment users can select that option and gain access to the next page, what I want to do is if 'Please Select One' is selected ensure that access to the next page/step will not be given until an actual option on the drop down list is selected.
Im guessing some sort of If statement but im unsure of how to do this.
Any help would be great.
This is my code for my ddl
<td class="question">
Out of Hours Working:
</td>
<td>
<asp:DropDownList ID="ddlout" runat="server" Width="150px">
<asp:ListItem Text="Please Select One"></asp:ListItem>
<asp:ListItem Text="Yes"></asp:ListItem>
<asp:ListItem Text="No"></asp:ListItem>
</asp:DropDownList>
<span class="mandatory">*</span>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator14" runat="server" ControlToValidate="ddlout"
ErrorMessage=" Required." InitialValue="Please select one..."
ForeColor="Red" SetFocusOnError="true"></asp:RequiredFieldValidator>
</td>