SimonPrice3376
asked on
asp.net repeater - the server tag is not well formed
Hi Experts,
I am using an asp.net repeater and am trying to assign an id to a checkbox and a button at the time the data is loaded into the repeated item,
the code I am using for the checkbox at the moment is
the error I am getting is as per the title
however looking around there is a lot of this issue, but with the onclientclick event and none of the solutions I have found have worked which is why I am asking here.
if anyone has a way around this I would be extremely grateful for your help.
I am using an asp.net repeater and am trying to assign an id to a checkbox and a button at the time the data is loaded into the repeated item,
the code I am using for the checkbox at the moment is
<asp:CheckBox runat="server" ID='<%# Eval("ContactId") %>' />
the error I am getting is as per the title
the server tag is not well formed
however looking around there is a lot of this issue, but with the onclientclick event and none of the solutions I have found have worked which is why I am asking here.
if anyone has a way around this I would be extremely grateful for your help.
ASKER
is there any particular reason for this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You cannot set the ID of a server control.