After migrating to ASP.Net Core 3.0
my TempData
is always null after redirecting to a View. Is there something wrong or missing at my startup.cs
code?
Try this part of code in startup.cs
:
services.AddControllersWithViews().AddSessionStateTempDataProvider()