I hard code values into the ViewBag and TempData but they do NOT show in the view.

Why?
I am NOT redirecting, just rendering - returning the view name with a model class.
Part of the BlogPublishedSelectionCriteria.cshtml view:
@model GbngWebClient.Models.BlogPublishedSelectionCriteriaVM
Blog Selection Criteria
@{
Layout = "~/Views/Shared/_LayoutUser.cshtml";
}
@TempData["errormessage"]
@ViewBag.errormessage
The last part of the action method before returning the view:
ViewBag.errormessage = "test";
TempData["errormessage"] = "test";
return View("BlogPublishedSelectionCriteria", blogPublishedSelectionCriteriaVM);
First LastPosted Aug 6, 2020, 3:16 PM
Jayant TripathyPosted Aug 6, 2020, 3:13 PM
Guest UserPosted Aug 6, 2020, 2:07 PM