MVC PartialView in multiple Views with different models

后端 未结 4 1924
南方客
南方客 2021-01-27 02:58

This may be a silly question and is more of a question about how to do something rather than an actual coding issue.

I want to have a partial view which contains a searc

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-27 03:46

    Try using a partial action instead of partial view.

    http://pratapreddypilaka.blogspot.co.uk/2011/11/htmlpartial-vs-htmlaction-mvc-razor.html?m=1

提交回复
热议问题