Persisting values across multiple controller actions

后端 未结 2 1207
-上瘾入骨i
-上瘾入骨i 2021-01-19 06:32

In my controller i have an ID to an object in a database, and multiple actions needs this id to access the object. This ID is fetched in the Index action and us

2条回答
  •  不思量自难忘°
    2021-01-19 07:10

    I usually go for hidden input in form for a scenario like this but if you are unwilling, You can use Cookies or Sessions.

提交回复
热议问题