title: The name 'ViewData' does not exist in the current context
body: <p>I am working over my first application over MVC3 and still kind of a newbie in it:<br>
  I’m trying to success my ViewData[] over a master page because its contains a message that would be used over every page, but when I’m trying to access that it says:</p>
  
  <p><em>CS0103: The name 'ViewData' does not exist in the current context</em></p>
  
  <pre><code>var msg = ViewData["msg"] as string;
          //var msg = ViewBag.msg as string;
          if (msg != null)
          {
              Response.Write (msg);
          } else if (msg == null)
          {
              Response.Write("");
          }
  </code></pre>
  
  <p>I am not sure whether I’m doing something wrong or it’s just not possible to access ViewData[] over my MasterPage. Help please!</p>