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.
精彩评论