【发布时间】:2019-02-28 14:06:29
【问题描述】:
我试着写下类似的东西;
Html.RenderAction("Reviews", "Poetry", new { id = "{{ poetry.ID }}" });
但它给出了一个错误,例如“参数字典包含方法'System.Web.Mvc.PartialViewResult'的不可空类型'System.Int32'的参数'id'的空条目”
但如果我写下类似下面的内容,它就可以正常工作;
var url = Url.Action("Reviews", "Poetry", new { id = "{{ poetry.ID }}" });
如何在 Html.RenderAction 方法中传递角度值?
【问题讨论】:
标签: asp.net-mvc angular renderaction