Missing Classes and Methods in ASP.net MVC 2
-
18-09-2019 - |
Question
I download asp.net mvc2 preview 2 days back. I've just started studying MVC. I tried to create a page to display Product details from AdventureWorksLT database. There is an Image in it (stored as byte[]). After googling for sometime I got some help and a few links from SO and other sites. There is one very nice post about doing this with helper methods here. I picked the code from this page but then VS complained that some methods are missing like
HtmlHelper.BuildUrlFromExpression
I googled again and got to this page. Now the problem was:
LinkBuilder.BuildParameterValuesFromExpression: The name "LinkBuilder" does not
exists in current context.
Please help me to find these methods or alternatives to them.
Solution
Futures assemblies are available from CodePlex.
MVC 1 RTM: http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=24471
MVC 2 Preview 1: http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30886
MVC 2 Preview 2 hasn't been released yet, so there is no Futures assembly for it. When it is released, the Futures assembly will also be located on CodePlex.