Iam using dropdownlist with required filed validator and Iam getting the text from db and binding to dropdownlist so its comng well but it is showning two times in dropdown I mean in actal place and the select place so whenever I click on button it firing what should I do in order to overcome this problem...
Code:
<asp:DropDownList ID="ddlMemberType" runat="server" CssClass="product-textbox" Width="420" onchange="changeMember();">
<asp:ListItem Value="Select" Text="Select MemberType" />
<asp:ListItem Value="Family" Text="Family Man" />
<asp:ListItem Value="Employee" Text="Employee" />
<asp:ListItem Value="Student" Text="Student" />
</asp:DropDownList>
<asp:RequiredFieldValidator ID="rfvMemberType" ErrorMessage="*" Display="Dynamic" ForeColor="Red" ControlToValidate="ddlMemberType" runat="server" />
assign the value in load event
ddlMemberType.SelectedItem.Text = dr["MemberType"].ToString();