I have a Literal control that I am trying to locate so I can insert text into it. I have a Master page that contains several content placeholders.
Literal
From within the masterpage:
var literal = (Literal)FindControl("MainLinks").FindControl("litNavLinks"); literal.Text = sb.ToString();
From within the view:
litNavLinks.Text = sb.ToString();