Why do I need to set the Visibility of LinkButton in a ListView Layout in the LayoutCreated event instead of directly on the LinkButton?
<p>I have a ListView control and in the LayoutTemplate I have a LinkButton.  I tried setting the Visible property to &lt;%# IsUserAdmin %>, where IsUserAdmin is a method which returns true or false depending on whether the user is an admin or not and sets the visibility of the control, but I found out that this does not work for the LayoutTemplate and instead of I have to go to the LayoutCreated event and get the control and then set its visibility.  I am curious why I have to do it this way with a control in the LayoutTemplate?  I can use the &lt;%# IsUserAdmin %> on the Visible property of a control in the ItemTemplate with no problem.  I was thinking it would actually be easier for the LayoutTemplate because there is only 1 control generated instead of multiple controls for the ItemTemplates.</p>
