One word of explanation. Usually, if you want to add attributes, for example. readonly, you would type:
@Html.TextBoxFor(m => m.Notes[i].Notes, new { readonly = "readonly" });
Note that there is no @ before readonly. You must put @ in front of the class attribute because it is a keyword in C #. If you do this in VB.NET, you do not need to run because you are defining properties with the host . :
@Html.TextBoxFor(Function(m) m.Notes[i].Notes, New With { .class = "myStyle" });
source share