Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 25, 2013 @ 09:27
    Fuji Kusaka
    0

    Retrieve XML value from EnumCheckBoxList

    Can anyone help on how to retrieve value from xml when using EnumCheckBoxlist ?

    At the moment i have the following output when Storage Type is XML.

    <EnumCheckBoxList> <enumName>Option 1</enumName> <enumName>Option 2</enumName> </EnumCheckBoxList> 

    And works fine when storage type is CSV with the follwoing code.

     @foreach (var test in userTel.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
                            {
                                @test
                            }

    But now that i want it in XML how to get ride of  <EnumCheckBoxList>


  • Fuji Kusaka 2203 posts 4220 karma points
    Nov 25, 2013 @ 11:42
    Fuji Kusaka
    100

    Looks like

    @Html.Raw(test.ToString()) 

    got this working

  • 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