I have an extension method to HtmlHelper:
<%= Html.MyMethod( params )%>
It works in visual studio, but throws (at runtime):
Compiler Error Message: CS0117: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'MyMethod'
The odd bit is that this does work:
<%= HtmlHelperExtensions.MyMethod( Html, params ) %>
Why does my method not work as an extension, but does as a normal static call?