Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Repeater control and checkboxes

Thread Tools

Repeater control and checkboxes

Roshawn Dawson
Posts: n/a

I've placed a checkbox server control inside the ItemTemplate of a
Repeater control. I keep getting a parser error for the line of code below:

<td><asp:checkbox autopostback="False" enableviewstate="False"
runat="server" id="<%# DataBinder.Eval(Container.DataItem,

The error says that the server tag is not well formed. How so?

I even performed another test with the textbox server control. I used
the same databinding syntax for its id attribute, and I get the same error.

Could it be that the Repeater control doesn't allow other controls to
have unique IDs (because the Repeater control does this on its own)?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP .NET Beginner trying to figure out <asp:Repeater and checkboxes ASP .Net 2 02-16-2007 05:13 AM
Accessing Checkboxes in Repeater control Imran Aziz ASP .Net 2 08-08-2005 02:16 PM
Handling checkboxes in Repeater Control Imran Aziz ASP .Net Web Controls 2 08-08-2005 11:10 AM
Cannot select checkboxes in checkboxlist within repeater. Ratman ASP .Net 2 07-04-2004 02:17 AM
Can anyone provide a good example of using checkboxes in a repeater Mark ASP .Net 3 02-03-2004 02:27 PM