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 200 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 11280 posts 23678 karma points MVP 11x 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

Please Sign in or register to post replies

Write your reply to:

Draft