Copied to clipboard

Flag this post as spam?

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


  • dominik 711 posts 733 karma points
    Jun 13, 2012 @ 14:02
    dominik
    0

    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?

     

     

  • 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