I am using the following:
@model IEnumerable<Abc.Service.Shared.Models.Company>
@Html.TextBoxFor(m >= m.Name , new { @id="CompanySearch" })
I get the error:
CS0103: The name 'm' does not exist in the current context
Can anyone help me solve this?
After correcting the arrow, I get another error:
@Html.TextBoxFor(m => m.Name , new { @id="CompanySearch" })
CS0411: The type arguments for method 'System.Web.Mvc.Html.InputExtensions.TextBoxFor<TModel,TProperty>(System.Web.Mvc.HtmlHelper<TModel>, System.Linq.Expressions.Expression<System.Func<TModel,TProperty>>, string)' cannot be inferred from the usage. Try specifying the type arguments explicitly.