1

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)

3 Answers 3

1

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: Where to get Microsoft.Web.Mvc.dll

Sign up to request clarification or add additional context in comments.

Comments

1

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.

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.