Copied to clipboard

Flag this post as spam?

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


  • Claushingebjerg 860 posts 2269 karma points
    Nov 08, 2019 @ 07:44
    Claushingebjerg
    0

    check specific checkbox list value

    I have a checkboxlist in v8, and i need to check it for values and do something, if a specific checkbox is set...

    Iknow i can get the values by doing

    foreach(var s in Model.Value<IEnumerable<string>>("type")){
    <text>@s</text>
    }
    

    But how do i check if one of the values is "foo"?

Please Sign in or register to post replies

Write your reply to:

Draft