Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 952 karma points
    Jun 27, 2013 @ 05:56
    Tom
    0

    v 6.0.5 GetPropertyValue<T> always returns a string?!

    Hi all,

    We're using 6.0.5 and I'm trying to call Model.GetPropertyValue<T> to get the return type back as expected but it is always coming back as a string..

    Just wondering if GetPropertyValue<T> is broken?

    int selectedPositionValue = Model.GetPropertyValue<int>("somePropertyName");

    string textValueFromDropDownControl = umbraco.library.GetPreValueAsString(selectedPositionValue);

  • 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