Tuesday, 16 February 2021

MVC - Fix Error - Compiler Error Message: CS0103: The name 'maxLength' does not exist in the current context

Watch this example on YouTube

 

 

To Fix it replace

    @Html.TextBoxFor(x => x.or.Column1, new { @class = "editor-field-date"}, maxLength = 10)

with

    @Html.TextBoxFor(x => x.or.Column1, new { @class = "editor-field-date", maxLength = 10})

No comments:

Post a Comment