Copied to clipboard

Flag this post as spam?

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

  • Adam Southorn 11 posts 31 karma points
    Oct 28, 2012 @ 13:10
    Adam Southorn

    Submit checkboxlist values to Umbraco

    Hi there,

    Not sure where to post this but it's a .NET to Umbraco question. I have a user control which is a form, and people can submit some info to my site. This in turn creates a new Umbraco item and all is working well.

    My only issue is that the form has a checkboxlist for "skills" which isn't being sent to Umbraco. The code itself correctly returns a comma separated list such as (Value1,Value2,Value3) but Umbraco can't pick this up. Here is the code I have:

    var values = (from ListItem listitem in skills.Items where listitem.Selected select listitem.Value).ToList();
    newPage.getProperty("skills").Value = string.Join(",", values);




    Just for clarity, this successfully works with text fields for the user's Name etc, but the only problem is with checkboxlists.

    I have searched around but haven't found an answer. I'm not the most experienced .NET developer just yet so maybe it's a really simple fix, but I'm at a loss right now. Can anyone help?! :)

    Thanks in advance.

Please Sign in or register to post replies

Write your reply to: