Hi
I'm writing an MVC C# application. I use a masterPage and have the title and content of other pages put in contentPlaceholders, which are displayed on the master page.
On the MasterPage, I want the TitleContent written in both the <title> tag and in the <body> section (in a <h1> tag).
I'm not allowed to do this, because for some odd reason you're not allowed to use the same contentPlaceholder twice on a page.
Until now, I've been using
(FindControl("TitleContent").Controls[0] as LiteralControl).Text
in the <h1> tag, which worked fine until I started adding dynamic content
to the TitleContent placeholder (eg C# code).
How do I display this content twice?