Link to home
Start Free TrialLog in
Avatar of spencerturbine
spencerturbine

asked on

User Control Template Not Working

I am trying to create a user control that allows the use of a template to show the data.

But I get no data displayed when I use

<ItemTemplate>Test:<%# Container.ItemId %></ItemTemplate>

If I do not create the template.... I do see the "template not defined" error as expected.

I have attached the files that I am using to demonstrate my problem.
Default2.aspx.cs.txt
Default2.aspx.txt
WebUserControl.ascx.cs.txt
WebUserControl.ascx.txt
ASKER CERTIFIED SOLUTION
Avatar of ppittle
ppittle
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of spencerturbine
spencerturbine

ASKER

Databind worked like a charm!

Thanks