storing a js value from 1 ActionResult to use in another ActionResult

后端 未结 2 1764
旧时难觅i
旧时难觅i 2020-12-17 07:27

I\'ve got a Controller, and in one of the ActionResults, there is a javascript value being returned that I can access via:

Request.QueryString[         


        
2条回答
  •  有刺的猬
    2020-12-17 07:47

    HTTP is stateless, every request has it's own state and Controller instance.

    You can use TempData which use Session but delete the value after you read it.

提交回复
热议问题