D
David R
C# ASP.NET1.1 w/ VS2003 on IIS6
Hi
In my application, I have a "PageTemplate.ascx" that contains a
user-provided template for a page with 2 controls on it, one of these is a
content placeholder.
In my BasePage class, the content placeholder is replaced with content
gleaned from a database, but this is where it gets tricky.
Some of the content is repeatable, so I figured that I should
programattically create a WebControls.Repeater, and load the ItemTemplate
from an *.ascx file (With LoadControl() ).
But then I wondered how I do databinding or actually fill in the content,
and then I found out that Repeater.ItemTemplate doesn't accept
System.Web.UI.Control as a value, instead it's "ITemplate", and the
documentation on that is just confusing.
Any ideas or recommendations on where to look or what to do?
Thanks
Hi
In my application, I have a "PageTemplate.ascx" that contains a
user-provided template for a page with 2 controls on it, one of these is a
content placeholder.
In my BasePage class, the content placeholder is replaced with content
gleaned from a database, but this is where it gets tricky.
Some of the content is repeatable, so I figured that I should
programattically create a WebControls.Repeater, and load the ItemTemplate
from an *.ascx file (With LoadControl() ).
But then I wondered how I do databinding or actually fill in the content,
and then I found out that Repeater.ItemTemplate doesn't accept
System.Web.UI.Control as a value, instead it's "ITemplate", and the
documentation on that is just confusing.
Any ideas or recommendations on where to look or what to do?
Thanks