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 954 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);

Please Sign in or register to post replies

Write your reply to:

Draft