【发布时间】:2011-12-22 02:02:13
【问题描述】:
我有一个 ASP.NET MVC 3 Razor Web 应用程序。
我有一个WebViewPage 分机:
public static bool Blah(this WebViewPage webViewPage)
{
return blah && blah;
}
我想通过我的HtmlHelper 扩展访问这个:
public static MvcHtmlString BlahHelper(this HtmlHelper htmlHelper, string linkText, string actionName)
{
// how can i get access to the WebViewPage extension method here?
}
如果必须,我当然可以复制WebViewPage 扩展的功能,但我只是想知道是否可以从 HTML 帮助程序访问它。
【问题讨论】:
标签: asp.net-mvc asp.net-mvc-3 razor html-helper viewpage