Datalist Headertemplate Question

Ambie

New Member
For the site I'm working, I'm using two datalists. The first one is a list of Books and the second is a list of Indexes in the selected Book. The Index list doesn't come up until a Book is chosen. I'd like to display the name of the selected Book at the top of the Index list. It's being selected from the database without a problem, but I'm getting an error when using the Container.DataItem("BookName") method inside <HeaderTemplate></HeaderTemplate> tags. Is the HeaderTemplate tag Bindable? If not, does anyone have any ideas on how else I can implement this? If so, then how do I do it?<BR><BR>Thank you,<BR>Joe FioriniAnswered my own question. I looked at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpcondatalistwebcontrol.asp. On this page it says that the HeaderTemplate cannot be databound.<BR>I also decided to put a label at the top of the table I'm using to display my datalist that has the information in it that I needed to display in the HeaderTemplate.<BR><BR>-Joe Fiorini
 
Back
Top