Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Giampaolo Cutroneo 29 posts 159 karma points
    Nov 08, 2023 @ 20:30
    Giampaolo Cutroneo
    0

    Boolean in memberproperties

    Hi everyone. I have a member type with 4 additional properties: 2 text and 2 boolean. When I create the macro for registering a new member, the text fields work perfectly via the TextBoxFor helper, example:

    @Html.TextBoxFor(m => registerModel.MemberProperties[1].Value, new { @class = editorClass})

    but I can't find a way to use the CheckBoxFor helper for the other two fields.

    Can someone help me?

    Thank you!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies