Copied to clipboard

Flag this post as spam?

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


  • suzyb 464 posts 877 karma points
    May 28, 2011 @ 13:17
    suzyb
    0

    $currentPage/ancestor-or-self user control

    I'm trying to select a node in a user control that is of a particular doctype at either the current level or a parent of the current node.  This basically but in a user control

    <xsl:variable name="nodes" select="$currentPage/ancestor-or-self::ContactUs" />
  • suzyb 464 posts 877 karma points
    May 30, 2011 @ 11:36
    suzyb
    1

    Managed to work it out.  Did it using this code

    Node contactNode =  Node.GetNodeByXpath("//ancestor-or-self::ContactUs");
  • 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