title: Creating a default site page title in MVC3
body: <p>I've got the following in my Layout file:</p>
  
  <pre><code>@{
      ViewBag.Title = "Default page title";
  }
  
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;@ViewBag.Title&lt;/title&gt;
  &lt;/head&gt;
  .....
  </code></pre>
  
  <p>In my View I've got:</p>
  
  <pre><code>@{
      ViewBag.Title = "Home";
      Layout = "~/Views/Shared/_Layout.cshtml";
  }
  </code></pre>
  
  <p>However, the page title is coming out as "Default page title".</p>
  
  <p>How can I get the page title to display as "Home"? I only want "Default page title" to appear if I haven't specified a value for <code>ViewBag.Title</code> in the View.</p>