Saturday, 11 March 2017

MVC - Fix Error - Non-invocable member '' cannot be used like a method.


Watch solution on YouTube


Error    CS1955    Non-invocable member 'Users_SelectAll_Result.LanID' cannot be used like a method.

Compiler Error Message: CS1955: Non-invocable member 'Users_SelectAll_Result.LanID' cannot be used like a method.

To Fix it replace
 @Html.LabelFor(model => model.First().LanID())
With
 @Html.LabelFor(model => model.First().LanID)

No comments:

Post a Comment