破碎的RenderPartial我已經走到了MVC3項目,我之前已經停止工作一個星期撰寫並拋出以下錯誤:與MVC3
Error 10 The call is ambiguous between the following methods or properties: 'System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(System.Web.Mvc.HtmlHelper, string)' and 'System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(System.Web.Mvc.HtmlHelper, string)
'
,這是什麼原因呢?最近項目中我沒有改變任何東西,因爲它是博克。我把它看起來像這樣的代碼:
<div class="page-body">
@if(!String.IsNullOrWhiteSpace(ViewBag.ErrorMessage)) {
// Output error message
Html.Raw(ViewBag.ErrorMessage);
} else {
// Render upload form
Html.RenderPartial("_UploadForm");
}
</div>
爾加盯着它相當長的一段時間,由於經過這麼簡單! – Lloyd 2012-07-09 13:21:04