Hello All ,
In my signup page Am having a dropdownlist and selectedindexchanged event in that when i select some value from the dropdown list ,password and confirm passford fields intext box entered before choosing the dropdownlist is getting cleared !
What should i do to avoid this.
<tr>
<td align="left">
<asp:Label ID="lblpwd" runat="server" Text="Password"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtPassword" runat="server" TextMode="Password" MaxLength="15" Width="150px"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="left">
<asp:Label ID="lblcpwd" runat="server" Text="Confirm Password"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtCPwd" runat="server" TextMode="password" MaxLength="15" Width="150px"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="txtCPwd"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="left">
<asp:Label ID="lblPwdQues" runat="server" Text="Security Password<BR> Question"></asp:Label>
</td>
<td align="left">
<asp:DropDownList ID="ddlpwdques" runat="server" Width="150px" OnSelectedIndexChanged="ddlpwdques_OnSelectedIndexChanged" AutoPostBack="true">
<asp:ListItem>Select One</asp:ListItem>
<asp:ListItem>Memorable Day?</asp:ListItem>
<asp:ListItem>Pet's Name?</asp:ListItem>
<asp:ListItem>First School?</asp:ListItem>
<asp:ListItem>Favourite Place?</asp:ListItem>
<asp:ListItem>Favourite Color?</asp:ListItem>
</asp:DropDownList>
</td>
</tr>