Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

What class is the Container object?

Vote:
 
The container in all page based templates is the PageTemplateContainer class.
#13512
Oct 09, 2003 17:24
Vote:
 
Thanks!
#13513
Oct 10, 2003 15:00
Vote:
 
I was looking at doing the same thing here and I managed it... Its too bad there was no code to share with the forum so here's mine: Works well with a repeater control etc... suggestions on a better way welcome :) aspx: <%#GetProperty(Container.DataItem,"WriterName")%> code behind: protected string GetProperty(Object page, string prop) { PageData oPage = page as PageData; if (oPage == null) return string.Empty; return oPage.Property[prop].ToString(); }
#13514
Nov 26, 2004 15:26
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.