How do I access a Control in the LayoutTemplate of a ListView control?
I need to get to litControlTitle and set its Text attribute.
<asp:ListView ID='lv' runat='server'> <LayoutTemplate> <asp:Literal ID='litControlTitle' runat='server' /> <asp:PlaceHolder ID='itemPlaceHolder' runat='server' /> </LayoutTemplate> <ItemTemplate> </ItemTemplate> </asp:ListView>
Any thoughts? Perhaps via the OnLayoutCreated event?
Try this: