You can use tempdata for this situation
like this
:
[HttpGet]
public ActionResult Index()
{
TempData["hi"]="hello";
return View();
}
[Httppost]
public ActionResult Index(Model model)
{
var s=TempData["hi"].ToString();
return View();
}
I hope this will help
Cheers !!