In an ASP.NET MVC view I have the following code:
<% Page.Title = ViewData.Model.MyPageTitle; %>
and when I step through it I see the Page.Title value changing to the title that I want but when you look at the page's title shown in the browser it has not been modified. It appears that this value is overwritten by something later on.
Any ideas how the page title should be set if you want to do it dynamically?