Click here to Skip to main content
15,936,430 members

Comments by Shiva nag (Top 3 by date)

Shiva nag 11-Apr-14 5:17am View    
Actully Iam saving data to db in that I have dropdownlist with required filed valiadator
once data saved to db page will be redirected from there I need to click on button to redirect to actual page then there Dropdown value showing value two times I mean value showing in select Place as well as in actual position
Shiva nag 11-Apr-14 5:09am View    
Actually it getting in the scenario of edit Iam clicking on edit button which is in another page
load event Iam assiging the value to dropdownlist Even I removed reaquired field validator....
Shiva nag 11-Apr-14 2:55am View    
Aspx 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:RequiredFieldValidator ID="rfvMemberType" ErrorMessage="*" Display="Dynamic" ForeColor="Red" ControlToValidate="ddlMemberType" runat="server" />
.CS code
ddlMemberType.SelectedItem.Text = dr["MemberType"].ToString();