开发者

Accessing ViewBag within _LogOnPartial in MVC3?

开发者 https://www.devze.com 2023-04-10 12:43 出处:网络
Trying to pass in da开发者_运维问答ta after valid logon to the _LogOnParial view but ViewBag isn\'t accessible.How can I pass in data to this partial view?If you want to pass data between controller a

Trying to pass in da开发者_运维问答ta after valid logon to the _LogOnParial view but ViewBag isn't accessible. How can I pass in data to this partial view?


If you want to pass data between controller action methods use TempData or send it over as a parameter in the Html.Partial call from using a viewmodel or viewdata to make the data available to send as a parameter in the Partial call.

0

精彩评论

暂无评论...
验证码 换一张
取 消