<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<table border="1" width="100%">
<tr>
<th>id</th>
<th align=left>Room Categories</th>
<th>single</th>
<th>Double</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td width="5%">
<asp:Label ID="Label3" runat="server" Text= '<%# Container.DataItem("packageid")%>' /></td>
<td> <asp:CheckBox ID="chk_packages" AutoPostBack=true runat="server" Text = <%#Container.DataItem("package_name")%> /> </td>
<td><%#Container.DataItem("single_rate")%><asp:CheckBox AutoPostBack=true ID="single" Enabled=false runat="server" /></td>
<td><%#Container.DataItem("double_rate")%><asp:CheckBox AutoPostBack=true ID="Double" runat="server" /></td>
<td><asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</asp:PlaceHolder>
i want when any packages checbox click in repeater two other checkbox in repeater (single,double get enable) in the same row ,whne i un-unchecked it it also disables them , iw rite some stuff in my application in order to do but its does not working as required
now see the code
Private Sub Repeater1_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles Repeater1.ItemCreated
Dim ri As RepeaterItem = CType(e.Item, RepeaterItem)
Dim elemType As ListItemType = e.Item.ItemType
If (elemType = ListItemType.Item) OrElse (elemType = ListItemType.AlternatingItem) Then
Dim cb As CheckBox = ri.FindControl("chk_packages")
AddHandler cb.CheckedChanged, AddressOf Me.myCheckedChanged
'cb.CheckedChanged += New EventHandler(CheckedChanged)
End If
End Sub
Private Sub myCheckedChanged(ByVal sender As Object, ByVal e As EventArgs)
/// i need help here
end sub