You may have noted that the master page
<title /> element contained the text
Untitled Page. Properties such as this can be modified from within the template file. Let’s set the
<title /> element and the
litHeader control to the MCMS Posting Display Name:
1. In Solution Explorer, right-click the
Plant.aspxfile, and click View Code.
Add the following
Enter the following code within the
Page_Load()method of the template file:
string displayName = CmsHttpContext.Current.Posting.DisplayName; Master.Page.Title = displayName; litHeader.Text = displayName;
Save your work, and from the Build menu, choose Build Web Site.