Nested Repeater controls

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pete Davis

    #1

    Nested Repeater controls

    As per the instructions in Microsoft KB article: 306154, I have tried to
    create a nested repeater control.

    The inner (child) repeater control is declared as follows:

    <asp:Repeater id="roomDetailR epeater" runat="server"
    datasource='<# ((DataRowView)C ontainer.DataIt em).
    Row.GetChildRow s("RoomType") %>' >

    This is all, of course, one line in the aspx.

    I also added <%@ Import Namespace="Syst em.Data" %> at the top, again, as per
    the KB article.

    When I bring up the page however, I get a parser error message: "The
    'datasource' property is set only by the runtime. It cannot be declared."

    Did I miss something? I've gone back through step-by-step to see if I'm
    missing something in the instructions, but I can't find it.

    Thanks for any help anyone can offer on this.

    Pete


Working...