Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP DataList

Reply
Thread Tools

ASP DataList

 
 
Chris Fink
Guest
Posts: n/a
 
      07-18-2003
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


 
Reply With Quote
 
 
 
 
Marina
Guest
Posts: n/a
 
      07-18-2003
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
>
>



 
Reply With Quote
 
 
 
Reply

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
Entering DataList EditItemTemplate from Outside of the DataList Luis Esteban Valencia ASP .Net 1 01-06-2005 07:32 PM
Setting up a datalist control - Item_DataBound for a datalist in a datalist Nevyn Twyll ASP .Net 8 09-09-2004 10:13 PM
Click event in a datalist to post back datalist properties Steve Lloyd ASP .Net 1 05-26-2004 04:07 AM
DataList in DataList acko bogicevic ASP .Net 2 11-11-2003 08:31 AM
Datalist in Datalist How? Gönen EREN ASP .Net 0 08-22-2003 02:41 PM



Advertisments