Any reason why my ViewBag is not working?

前端 未结 3 1310
梦如初夏
梦如初夏 2021-01-05 23:05

I have following ActionResult in a controller and you can see that I set a message in the ViewBag if it\'s successful. Then on the

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-05 23:19

    The viewbag/viewdata scope is available for controller to view only. if you use tempdata, it will available one request , you can extend more than one request

提交回复
热议问题