Repeater control and checkboxes

Discussion in 'ASP .Net Web Controls' started by Roshawn Dawson, Aug 17, 2005.

  1. Hi,

    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,
    "ID")%>"></asp:checkbox></td>

    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)?

    Thanks,
    Roshawn
    Roshawn Dawson, Aug 17, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark
    Replies:
    3
    Views:
    3,229
    Steven Cheng[MSFT]
    Feb 3, 2004
  2. Ratman
    Replies:
    2
    Views:
    1,539
    Ratman
    Jul 4, 2004
  3. Imran Aziz

    Accessing Checkboxes in Repeater control

    Imran Aziz, Aug 6, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    4,000
    Imran Aziz
    Aug 8, 2005
  4. Replies:
    2
    Views:
    530
  5. Imran Aziz

    Handling checkboxes in Repeater Control

    Imran Aziz, Aug 6, 2005, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    307
    Imran Aziz
    Aug 8, 2005
Loading...

Share This Page