Copied to clipboard

Flag this post as spam?

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


  • suzyb 474 posts 932 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 474 posts 932 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");
Please Sign in or register to post replies

Write your reply to:

Draft