title: MVC ViewBag Is Not Appearing In Views At All
body: <p>Several of my pages on MVC (which had ViewBag.Message by default when setting up MVC) doesn't display at all in the view.</p>
  
  <p>Controller:</p>
  
  <pre><code>public ActionResult Index()
  {
  ViewBag.Test = "Test";
  return view();
  }
  </code></pre>
  
  <p>Razor View:</p>
  
  <pre><code>Index.cshtml
  
  &lt;p&gt; Hello @ViewBag.Test &lt;/p&gt;
  </code></pre>
  
  <p>I have no idea why my viewbag isn't appearing?</p>