ASP DataList

Discussion in 'ASP .Net' started by Chris Fink, Jul 18, 2003.

  1. Chris Fink

    Chris Fink Guest

    Hello,

    I have an ASP Datalist in which I am binding a value within the
    <itemtemplate> section as follows:

    <%# DataBinder.Eval(Container.DataItem, "week")%>

    This displays the week value as expected.

    However, the same statement in the <headertemplate> of the datalist
    display's nothing?

    Confused?

    Chris
     
    Chris Fink, Jul 18, 2003
    #1
    1. Advertising

  2. Chris Fink

    Marina Guest

    That is because the header is not bound for every item. There is only one
    header in the datalist, regardless of how many items are in it.

    "Chris Fink" <> wrote in message
    news:%...
    > Hello,
    >
    > I have an ASP Datalist in which I am binding a value within the
    > <itemtemplate> section as follows:
    >
    > <%# DataBinder.Eval(Container.DataItem, "week")%>
    >
    > This displays the week value as expected.
    >
    > However, the same statement in the <headertemplate> of the datalist
    > display's nothing?
    >
    > Confused?
    >
    > Chris
    >
    >
     
    Marina, Jul 18, 2003
    #2
    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:
    416
    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,538
    acko bogicevic
    Nov 11, 2003
  3. Steve Lloyd
    Replies:
    1
    Views:
    710
    Rick Spiewak
    May 26, 2004
  4. Nevyn Twyll
    Replies:
    8
    Views:
    1,916
  5. Luis Esteban Valencia
    Replies:
    1
    Views:
    496
    John Saunders
    Jan 6, 2005
Loading...

Share This Page