I want to pass Model along with some object stored in ViewData dictionary.
The way I did this is @Html.Partial("_DataPaging", Model, ViewData['123'])
. But this gives an error that Partial method has some invalid arguments.
How can I pass Model along with some other object which I want to use inside Partial View ?
相关问题
- MVC-Routing,Why i can not ignore defaults,The matc
- How to dynamically load partial view Via jquery aj
- parameters in routing do not work MVC 3
- Rails how to handle error and exceptions in model
- There is no ViewData item with the key 'taskTy
相关文章
- laravel create model from custom stub when using p
- How to get a list of connected clients on SignalR
- How do you redirect to the calling page in ASP.NET
- Change color of bars depending on value in Highcha
- The program '[4432] iisexpress.exe' has ex
- ASP.Net MVC 4 Bundles
- How to get server path of physical path ?
- Cannot implicitly convert Web.Http.Results.JsonRes
Seems like the appropriate overloaded method signature of the
Html.Partial
method is:And in your case:
That means you'll have to extract
ViewData["123"]
manually inside_DataPaging
partial.