0๐
โ
You can use the third parameter of checkbox to add attributes. Underscores get converted into dashes in Razor. You also need the @ for reserved keywords, like ref.
@Html.CheckBox("isNewlyEnrolled", false, new { @v_model = "checkboxchecked", @ref = "checkbox" })
0๐
you have conflicting names
change the method name and then try again
Conflicting method and data names.
Source:stackexchange.com