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
Hello,
I have setuped a document type wiht a property called "internalLink" from type content picker.
If i now want to redirect to this url in my c# usercontrol i am using the following code
umbraco.library.NiceUrl(Convert.ToInt32(Node.GetCurrent().GetPropertyValueRecursive("internalLink")));
Now sometimes it should not be a content picker. Instead it should be a textstring.
If i use text string instead i get an error.
Is there a way how to handle both ways this?
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
Get url in usercontrol
Hello,
I have setuped a document type wiht a property called "internalLink" from type content picker.
If i now want to redirect to this url in my c# usercontrol i am using the following code
umbraco.library.NiceUrl(Convert.ToInt32(Node.GetCurrent().GetPropertyValueRecursive("internalLink")));
Now sometimes it should not be a content picker. Instead it should be a textstring.
If i use text string instead i get an error.
Is there a way how to handle both ways this?
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.