Copied to clipboard

Flag this post as spam?

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


  • Axel 68 posts 96 karma points
    Jun 03, 2014 @ 12:54
    Axel
    0

    umbracoHelper and get url of content

    Hi, i want in an customcontrol (codebehind)
    set a hyperlink to a content page (use umbraco 7) . How did i exactly find out the correct syntax to handle this ?
    I started with the following code. and second how did i find the contentid ?

    Imports umbraco.Web.UI.Controls.UmbracoControl
    Imports umbraco.Web.UI.Controls.UmbracoUserControl

     

      Dim umbracoHelper = New umbraco.Web.UmbracoHelper(umbraco.Web.UmbracoContext.Current)

            Dim Page As umbraco.content = umbracoHelper.Content(1234) '


        HyperLink1.NavigateUrl= ???????????????????????????????????

Please Sign in or register to post replies

Write your reply to:

Draft