0

This was working before in RC1 but in RC2 not working. Any idea whats wrong?

Line 97:         @Html.LabelFor(model => model.Username)
Line 98:         @Html.TextboxFor(model => model.Username) ---> ERROR HERE
Line 99:         @Html.ValidationMessageFor(model => model.Username)

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1061: 'System.Web.Mvc.HtmlHelper<Learning.Ajax.Models.Order>' does not contain a definition for 'TextboxFor' and no extension method 'TextboxFor' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<Learning.Ajax.Models.Order>' could be found (are you missing a using directive or an assembly reference?)

1 Answer 1

3

Should be TextBoxFor (with capital B)

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

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.