tags:

views:

165

answers:

3

Where has the generic html controls and url helpers gone ?

You know the ones that looked something like this:

this.TextBox<MyInputModel>(model=>model.Name)

this.ActionLink<MyController>(controller=>controller.Index)
A: 

They should appear on a generic view. i.e.

ViewPage<MyInputModel>

or generic user control

ViewUserControl<MyInputModel>

but that should read

html.TextBox(model=>model.Name)

Beware that is untested code.

Canton
+1  A: 

These are (and have always been, I think) in the MvcFutures assembly. You need to update to the newest MvcFutures when you upgrade to the released version.

tvanfosson
+1  A: 

They are extensions located in the assembly Micosoft.Web.MVC. You have to add this assembly to your project and add a reference to it in the web.config file. You should consult the following answer for more details: http://stackoverflow.com/questions/334408/where-to-get-microsoftwebmvcdll

Geo