Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<asp:Repeater ID="RepterDetails" runat="server"
       onitemcommand="RepterDetails_ItemCommand" OnItemDataBound="Repeater1_ItemDataBound">
<HeaderTemplate>
 </HeaderTemplate>
    <ItemTemplate>
 <table cellspacing="0" cellpadding="0" bgcolor="#e6e5e5"; style="width: 650px">


   <tr>
<td width="150" align="left" valign="middle"><asp:Label ID="lbl_marital" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "maritalstatus")%>' Font-Bold="true"></asp:Label>

       <asp:DropDownList ID="marital" runat="server" class="feedback_textfield" Visible ="False"  AutoPostBack="true" >
       <asp:ListItem>Select</asp:ListItem>
        <asp:ListItem>unmarried</asp:ListItem>
        <asp:ListItem>married</asp:ListItem></asp:DropDownList></td>



after selecting dropdownlist value, i need to visible some textboxes..


XML
<tr>
<td width="93" align="left" valign="middle"><asp:Label ID="lblwife" runat="server" Text="Wife Name" ></asp:Label></td>
<td width="12" align="center" valign="middle"><asp:Label ID="Label2" runat="server" Text=":" ></asp:Label></td>
<td width="150" align="left" valign="middle"><asp:Label ID="lbl_wife" runat="server" Text='<%# Bind("wifename")%>' Font-Bold="true"></asp:Label>
    <asp:TextBox ID="txtwife" runat="server" class="feedback_textfield" Text='<%# Bind("wifename")%>' Visible="false"></asp:TextBox></td>
</tr>




Inside the repeater, I cant able use dropdownlist events...
How to do that...

Kindly tell me some suggestions...
Posted
Comments
Kornfeld Eliyahu Peter 21-May-14 5:23am    
What have you tried?
Sunasara Imdadhusen 21-May-14 8:21am    
Can you please share your server side code?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900