Customize DataList ItemType?

Discussion in 'ASP .Net Web Controls' started by chuck@digitalinnovators.com, Jan 31, 2005.

  1. Guest

    Is it possible to create my own DataList ItemTypes? What I'd love to
    do have code like:

    <ME:MyDataList id="lst" runat="server">
    <ParentItemTemplate>
    I'm a parent and I have my own controls.
    </ParentItemTemplate>
    <ChildItemTemplate>
    I'm a child and I have my own controls too.
    </ChildItemTemplate
    </ME:MyDataList>

    I have very different layouts depending on the type of data being bound
    to the datalist and I'm trying to avoid showing/hiding countless items
    inside the ItemTemplate based on the type.

    Thanks.
     
    , Jan 31, 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. Gönen EREN

    Datalist in Datalist How?

    Gönen EREN, Aug 22, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    418
    Gönen EREN
    Aug 22, 2003
  2. acko bogicevic

    DataList in DataList

    acko bogicevic, Nov 10, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    5,556
    acko bogicevic
    Nov 11, 2003
  3. Steve Lloyd
    Replies:
    1
    Views:
    717
    Rick Spiewak
    May 26, 2004
  4. Nevyn Twyll
    Replies:
    8
    Views:
    1,939
  5. RJN
    Replies:
    1
    Views:
    542
    Brent Humber
    Dec 24, 2006
Loading...

Share This Page