Binding a HeaderTemplate

S

SAL

I am using a Repeater control and I know that the ItemTemplate can be
databound but the HeaderTemplate cannot. I want to render a Header once with
meaningful data then display all the child items. Since I am fairly new to
Asp.net, what is the best approach to take?

For simplicity, say I wanted to show Car Makers and all the cars they build
I would want show the page like this:

Ford
F350
Mustang
Escort
Chevy
Camaro
Tahoe
Suburban

However, if I am returning a dataset from my data base I cannot bind my
headertemplate to CarMaker. What is a work around to my solution?

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top