2010-12-12 6 views
0

Dies war zuvor in RC1, aber in RC2 nicht funktioniert. Irgendeine Idee was ist falsch?Html.TextboxFor (Modell => Modell.Username) gibt Fehler in MVC3 RC2

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?) 

Antwort

3

Sollte TextBoxFor sein (mit einem Kapital B)

+0

Irgendwann habe ich sehr dumme Fehler :(. Dank – Pirzada

Verwandte Themen