Copied to clipboard

Flag this post as spam?

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


  • Ryan 35 posts 129 karma points
    Apr 29, 2013 @ 18:53
    Ryan
    0

    Retrieving SQL CheckBoxList Values

    I'm trying to build a usercontrol to access the SQL CheckBoxList Values.

    I included the umbraco and ucomponent dlls in my project, but I can't seem to figure out how to get the values.  The only luck I've had was "umbraco.library.GetItem("alias")"  This returns the checkboxlist IDs, ie: 123.

    I'm not sure how to get the XML data.  Any help is greatly appreciated!

  • Ryan 35 posts 129 karma points
    May 01, 2013 @ 15:01
    Ryan
    1

    I was able to figure this out.  It wasn't the checkbox IDs, it was the ID from a SQL column.  I updated the SQL expression and I have something I can work with.

    I was still under the impression that this would return XML though.

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    May 01, 2013 @ 15:32
    Hendy Racher
    0

    Hi Ryan,

    yes, SQL CheckBoxList should store an XML fragment if the datatype has been configured save as XML

  • Ryan 35 posts 129 karma points
    May 01, 2013 @ 15:36
    Ryan
    0

    Are you able to show me an example in .net and razor?  I am only able to get text values (example: "valuevaluevalue" if I check 3 boxes), not an xml format.  Thanks for your help!

Please Sign in or register to post replies

Write your reply to:

Draft