I am trying to get an old application that was written using a mvc preview version and have run in the following problem.
<%= Html.TextBox("Register_Name", ViewData.Model.Register.Name, 20, 30, new { _class = "textInput username" })%>
This is the error i get:
'System.Web.Mvc.HtmlHelper' does not contain a definition for 'TextBox' and no extension method 'TextBox' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)
My question is how do I resolve this? The problem also occurs with the "Html.Password" field.