このリンクをたどって、ウェブフォームで mvc をミックスします。の参照を追加しました:
- System.Web.Routing
- System.Web.Abstractions
- System.Web.Mvc
ドキュメントに従ってweb.configを変更します。
しかし、Web フォームHtml.RenderPartial
でHtml.ActionLink
は認識されません。エラーが発生しました:
'System.Web.Mvc.HtmlHelper<object>' does not contain a definition for 'RenderPartial' and no extension method 'RenderPartial' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<object>' could be found (are you missing a using directive or an assembly reference?)
参照がないか、間違っている可能性があります.MVCは私にとってまったく新しいものです。ありがとう。