Copied to clipboard

Flag this post as spam?

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


  • Claushingebjerg 844 posts 2219 karma points
    6 days ago
    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