Copied to clipboard

Flag this post as spam?

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


  • jeff mayer 122 posts 199 karma points
    May 02, 2014 @ 21:05
    jeff mayer
    0

    GetCheckboxList in U7 error

    Getting an error when trying to get selected values in checkbox list datatype.

    'object' does not contain a definition for 'Value'. What am I doing wrong here?

    Didn't have an issue in U4.

     foreach(var item in node.GetProperty("newsCategory").Value.Split(','))
      { 
        <li>@item.Name</li>
      } 
    
  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    May 02, 2014 @ 22:22
    Jan Skovgaard
    0

    Hi Jeff

    Don't know if you're using MVC or webforms but I'm guessing MVC.

    So instead of node.GetProperty try CurrentPage.newsCategory perhaps?

    Hope this helps.

    /Jan

  • 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