Why I cant use Html.RenderPartial in razor helper view File in App_Code Folder?
问题 Simple Razor Helper in App_Code Folder: MyHelper.cshtml @using System.Web.Mvc @helper SimpleHelper(string inputFor){ <span>@inputFor</span> Html.RenderPartial("Partial"); } Simple View in Views/Shared Folder: MyView.cshtml <html> <head </head> <body> @WFRazorHelper.SimpleHelper("test") </body> </html> Simple Partial View in Views/Shared Folder: Partial.cshtml <h1>Me is Partial</h1> Compiler throws an Error: CS1061: 'System.Web.WebPages.Html.HtmlHelper' enthält keine Definition für