Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 18, 2008 12:39 AM by jeloff
Oct 17, 2008 04:54 PM|LINK
I created a new MVC BEta Project and copied over a few views and I get this error now:
'SubmitButton' is not a member of 'System.Web.Mvc.HtmlHelper'
It's not even listed as an option for me - what the hell?
Anyone know what I am doing wrong here?
Oct 17, 2008 05:16 PM|LINK
I believe this HtmlHelper is only availbe in the Futures assembly. The Futures assembly is no longer referenced automatically. It is a seperate download.
It looks like this HtmlHelper wasn't doing a whole lot for you in this case anyway. Why not just write:
<input type="submit" id="Search" name="Search" value="Search" class="btn"/>
Oct 18, 2008 12:39 AM|LINK
Download the MvcFuture bits from CodePlex for the Beta and then add MvcFutures back to the <Pages> section of your web.config:
SubmitButton should then become available inside your view once you rebuild (the intellisense does not always immediately pickup on changes).