Passing TempData with RedirectToAction

前端 未结 5 1495
夕颜
夕颜 2021-02-13 15:27

Intro: I am a .NET studet trying to learn ASP.NET Core MVC. So please be understanding. I have searched the web for an answer to my problem, but havent found a solution that wor

5条回答
  •  温柔的废话
    2021-02-13 16:08

    TempData stores data server-side, under user Session. You need to enable sessions (as exception message says). Check this manual.

    If you don't want to use sessions - you need some other way to store data (cookies?)

提交回复
热议问题