Hello, im trying to access a control in a contentage if there is one but i can't find the right property to get it.
I have the following code,
Literal subHeadline = Page.FindControl( "SubHeadline" ) as Literal;
if ( subHeadline != null )
{
subHeadline.Text = string.Format( "{0} (Page 2)", mainHeadline.Text );
mainHeadline.Text = string.Format( "{0} (Page 1)", mainHeadline.Text );
}
But the conrol is always null, how can i get the contol?