<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate>
<asp:CheckBox ID="chkControl" runat="server" onclick=<%# "setValue(this, '"+DataBinder.Eval(Container.DataItem, "CONTACTDATE")+"');" %> Text='<%#DataBinder.Eval(Container.DataItem, "CONTACTDATE")%>' />
</ItemTemplate>
</asp:Repeater>
<script type="text/javascript" language="javascript">
function setValue(chkControl, serverValue)
{
if(chkControl.checked)
{
//chkControl.nextSibling.innerHTML = 'checked';
chkControl.nextSibling.innerHTML = serverValue;
}
else
{
chkControl.nextSibling.innerHTML = 'Unchecked';
}
}
</script>
|