// Took result from one ActionMethod and kept it in TempData
// THIS IS Controller
int result = objDB.InsertEmployementApplication(OM);
TempData.Keep("result");
//Action Method which gets Value is Index
public ActionResult Index()
{
Response.Write("result is" + TempData.Keep("result") + " Thankssss");
return View("Index");
}
// THE ERROR IS (Error 1 Operator '+' cannot be applied to operands of type 'string' and 'void' )
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bikesh SrivastavaPosted Aug 23, 2016, 9:42 AM
Ajay MalikPosted Aug 23, 2016, 5:17 AM