D
Doogie
Hi, I have been trying to get a checkbox added to a repeater control
of mine and have limited success. At first, since the control is tied
to xsl, I added the checkbox there. That works fine, but I am having
problems getting access to status information (i.e. checked,
unchecked, etc) of the checkbox when I pass data from the xsl over to
a method in java. I can get info on the other columns but not that
one.
So I thought maybe it was because the repeater control's html doesn't
have the checkbox identified in it. Below is how the repeater control
looks:
<asp:repeater ID="RptTrip" Runat="server" EnableViewState="false">
<ItemTemplate>
<trip_detail_info trip_detail_id ='<%#
Container.DataItem("trip_detail_id")%>'
leg_start_dt = '<%#
Container.DataItem("leg_start_dt")%>'
pickup_iso_dt = '<%# Container.DataItem("pickup_iso_dt")%>'
trip_status = '<%# Container.DataItem("trip_status")%>'
eqp_type = '<%# filterPostrophe(Container.DataItem("eqp_type"))%>'
expire_iso_dt = '<%# Container.DataItem("expire_iso_dt")%>'
dispatch_dt = '<%# Container.DataItem("dispatch_dt")%>'
dispatch_iso_dt = '<%# Container.DataItem("dispatch_iso_dt")%>'
trip_status_update_dt = '<%#
Container.DataItem("trip_status_update_dt")%>'
status_iso_dt = '<%# Container.DataItem("status_iso_dt")%>'
haz = '<%# Container.DataItem("haz")%>'
leg_type_ds = '<%# Container.DataItem("leg_type_ds")%>'
move_type_ds = '<%# Container.DataItem("move_type_ds")%>'
cont_reefer = '<%# Container.DataItem("cont_reefer")%>'
trip_bkg_nr = '<%# Container.DataItem("trip_bkg_nr")%>'
container_an = '<%# Container.DataItem("container_an")%>'
orig_customer_nm = '<%#
filterPostrophe(Container.DataItem("orig_customer_nm"))%>'
dest_customer_nm = '<%#
filterPostrophe(Container.DataItem("dest_customer_nm"))%>'
orig_loc_nm = '<%#
filterPostrophe(Container.DataItem("orig_loc_nm"))%>'
dest_loc_nm = '<%#
filterPostrophe(Container.DataItem("dest_loc_nm"))%>'/>
</ItemTemplate>
</asp:repeater>
So I tried to add a checkbox like so:
<asp:repeater ID="RptTrip" Runat="server" EnableViewState="false">
<ItemTemplate>
<td><asp:CheckBox ID="cb" Runat="server" Checked="true"
Enabled="true"></asp:CheckBox> </td>
<trip_detail_info trip_detail_id ='<%#
Container.DataItem("trip_detail_id")%>'
leg_start_dt = '<%#
Container.DataItem("leg_start_dt")%>'
pickup_iso_dt = '<%# Container.DataItem("pickup_iso_dt")%>'
trip_status = '<%# Container.DataItem("trip_status")%>'
eqp_type = '<%# filterPostrophe(Container.DataItem("eqp_type"))%>'
expire_iso_dt = '<%# Container.DataItem("expire_iso_dt")%>'
dispatch_dt = '<%# Container.DataItem("dispatch_dt")%>'
dispatch_iso_dt = '<%# Container.DataItem("dispatch_iso_dt")%>'
trip_status_update_dt = '<%#
Container.DataItem("trip_status_update_dt")%>'
status_iso_dt = '<%# Container.DataItem("status_iso_dt")%>'
haz = '<%# Container.DataItem("haz")%>'
leg_type_ds = '<%# Container.DataItem("leg_type_ds")%>'
move_type_ds = '<%# Container.DataItem("move_type_ds")%>'
cont_reefer = '<%# Container.DataItem("cont_reefer")%>'
trip_bkg_nr = '<%# Container.DataItem("trip_bkg_nr")%>'
container_an = '<%# Container.DataItem("container_an")%>'
orig_customer_nm = '<%#
filterPostrophe(Container.DataItem("orig_customer_nm"))%>'
dest_customer_nm = '<%#
filterPostrophe(Container.DataItem("dest_customer_nm"))%>'
orig_loc_nm = '<%#
filterPostrophe(Container.DataItem("orig_loc_nm"))%>'
dest_loc_nm = '<%#
filterPostrophe(Container.DataItem("dest_loc_nm"))%>'/>
</ItemTemplate>
</asp:repeater>
For some reason, it is not recognizing that checkbox and displaying it
on the screen. I've tried it with and without the <td> lines.
Can anyone see what I'm doing wrong?
of mine and have limited success. At first, since the control is tied
to xsl, I added the checkbox there. That works fine, but I am having
problems getting access to status information (i.e. checked,
unchecked, etc) of the checkbox when I pass data from the xsl over to
a method in java. I can get info on the other columns but not that
one.
So I thought maybe it was because the repeater control's html doesn't
have the checkbox identified in it. Below is how the repeater control
looks:
<asp:repeater ID="RptTrip" Runat="server" EnableViewState="false">
<ItemTemplate>
<trip_detail_info trip_detail_id ='<%#
Container.DataItem("trip_detail_id")%>'
leg_start_dt = '<%#
Container.DataItem("leg_start_dt")%>'
pickup_iso_dt = '<%# Container.DataItem("pickup_iso_dt")%>'
trip_status = '<%# Container.DataItem("trip_status")%>'
eqp_type = '<%# filterPostrophe(Container.DataItem("eqp_type"))%>'
expire_iso_dt = '<%# Container.DataItem("expire_iso_dt")%>'
dispatch_dt = '<%# Container.DataItem("dispatch_dt")%>'
dispatch_iso_dt = '<%# Container.DataItem("dispatch_iso_dt")%>'
trip_status_update_dt = '<%#
Container.DataItem("trip_status_update_dt")%>'
status_iso_dt = '<%# Container.DataItem("status_iso_dt")%>'
haz = '<%# Container.DataItem("haz")%>'
leg_type_ds = '<%# Container.DataItem("leg_type_ds")%>'
move_type_ds = '<%# Container.DataItem("move_type_ds")%>'
cont_reefer = '<%# Container.DataItem("cont_reefer")%>'
trip_bkg_nr = '<%# Container.DataItem("trip_bkg_nr")%>'
container_an = '<%# Container.DataItem("container_an")%>'
orig_customer_nm = '<%#
filterPostrophe(Container.DataItem("orig_customer_nm"))%>'
dest_customer_nm = '<%#
filterPostrophe(Container.DataItem("dest_customer_nm"))%>'
orig_loc_nm = '<%#
filterPostrophe(Container.DataItem("orig_loc_nm"))%>'
dest_loc_nm = '<%#
filterPostrophe(Container.DataItem("dest_loc_nm"))%>'/>
</ItemTemplate>
</asp:repeater>
So I tried to add a checkbox like so:
<asp:repeater ID="RptTrip" Runat="server" EnableViewState="false">
<ItemTemplate>
<td><asp:CheckBox ID="cb" Runat="server" Checked="true"
Enabled="true"></asp:CheckBox> </td>
<trip_detail_info trip_detail_id ='<%#
Container.DataItem("trip_detail_id")%>'
leg_start_dt = '<%#
Container.DataItem("leg_start_dt")%>'
pickup_iso_dt = '<%# Container.DataItem("pickup_iso_dt")%>'
trip_status = '<%# Container.DataItem("trip_status")%>'
eqp_type = '<%# filterPostrophe(Container.DataItem("eqp_type"))%>'
expire_iso_dt = '<%# Container.DataItem("expire_iso_dt")%>'
dispatch_dt = '<%# Container.DataItem("dispatch_dt")%>'
dispatch_iso_dt = '<%# Container.DataItem("dispatch_iso_dt")%>'
trip_status_update_dt = '<%#
Container.DataItem("trip_status_update_dt")%>'
status_iso_dt = '<%# Container.DataItem("status_iso_dt")%>'
haz = '<%# Container.DataItem("haz")%>'
leg_type_ds = '<%# Container.DataItem("leg_type_ds")%>'
move_type_ds = '<%# Container.DataItem("move_type_ds")%>'
cont_reefer = '<%# Container.DataItem("cont_reefer")%>'
trip_bkg_nr = '<%# Container.DataItem("trip_bkg_nr")%>'
container_an = '<%# Container.DataItem("container_an")%>'
orig_customer_nm = '<%#
filterPostrophe(Container.DataItem("orig_customer_nm"))%>'
dest_customer_nm = '<%#
filterPostrophe(Container.DataItem("dest_customer_nm"))%>'
orig_loc_nm = '<%#
filterPostrophe(Container.DataItem("orig_loc_nm"))%>'
dest_loc_nm = '<%#
filterPostrophe(Container.DataItem("dest_loc_nm"))%>'/>
</ItemTemplate>
</asp:repeater>
For some reason, it is not recognizing that checkbox and displaying it
on the screen. I've tried it with and without the <td> lines.
Can anyone see what I'm doing wrong?