Copied to clipboard

Flag this post as spam?

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


  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Aug 16, 2010 @ 13:18
    Ali Sheikh Taheri
    0

    custom datatype radio button in usercontrol?

    I have created a custom datatype (radio button).with two values A and B.

    When on a node I select A. Its id is saved in umbraco.config.

    Now I am trying to get the value of that ID which is A in User control. (c#)

    Any Idea on this ?

    Thanks

    Ali

  • Sascha Wolter 615 posts 1101 karma points
    Aug 16, 2010 @ 14:14
    Sascha Wolter
    1

    Hi Ali,

    are you looking for this:

    int id = 12345; //get the id of A
    string value = umbraco.library.GetPreValueAsString(id);

    Sascha

     

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Aug 16, 2010 @ 14:17
    Ali Sheikh Taheri
    0

    woooow !!

    Thanks Sascha, you are super hero.

    Cheers

    Ali

Please Sign in or register to post replies

Write your reply to:

Draft