();
@@ -102,6 +105,7 @@ namespace MvcSample.Web
});
}
+ app.UseInMemorySession();
app.UseMvc(routes =>
{
routes.MapRoute("areaRoute", "{area:exists}/{controller}/{action}");
diff --git a/samples/MvcSample.Web/Views/Shared/MyView.cshtml b/samples/MvcSample.Web/Views/Shared/MyView.cshtml
index 0e2bc5ea94..d1f6231da3 100644
--- a/samples/MvcSample.Web/Views/Shared/MyView.cshtml
+++ b/samples/MvcSample.Web/Views/Shared/MyView.cshtml
@@ -51,6 +51,7 @@
ASP.NET
ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.
Learn more »
+ @ViewBag.TempData
@TempData["tempData"]
File Upload Demo: