Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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);
is working on a reply...
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.
Continue discussion
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);
is working on a reply...
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.