我的raz子看着:
@foreach (var comment in Model.Comments)
{
@Html.RenderPartial("Comment", comment);
}
我的部分观点载于/共享/评论。
@model Comment
<div>
<span class="user">@Model.Name</span>
...
</p>
I m 发现这一错误:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1502: The best overloaded method match for System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult) has some invalid arguments
(it then highlights the call to @Html.RenderPartial("Comment", comment);