title: 'Tempdata' does not exist in current context
body: <p>I am trying to pass some value from one controller to another something like</p>
  
  <pre><code>TempData["data"]="data";
  </code></pre>
  
  <p>but it says Tempdata does not exist in current context.So i decided to use ViewBag and surprisingly, i get the same error message for ViewBag.</p>
  
  <p>I read about it and it has something to do with BaseController.So I really have to derive from a basecontroller to make it work?</p>