I am trying to pass some value from one controller to another something like
TempData["data"]="data";
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.
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?