Link to home
Start Free TrialLog in
Avatar of SimonPrice3376
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

<asp:CheckBox runat="server" ID='<%# Eval("ContactId") %>' />

Open in new window


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.
Avatar of Lokesh B R
Lokesh B R
Flag of India image

Hi,

You cannot set the ID of a server control.
Avatar of SimonPrice3376
SimonPrice3376

ASKER

is there any particular reason for this?
ASKER CERTIFIED SOLUTION
Avatar of Lokesh B R
Lokesh B R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial