Options
roffers
Posted: Wednesday, September 26, 2007 3:59:47 PM
Rank: Newbie

Joined: 9/26/2007
Posts: 7
Okay I have the following code, but I can't seem to get it working at all. I know it's failing at the Request.UrlReferrer.ToString() line. But can anyone tell me why? Or more importantly how to fix it.

Many thanks in advance.

Code:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE xsl:Stylesheet [
  <!ENTITY nbsp "&#x00A0;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" xmlns:mycustomprefix="urn:mycustomprefix"
    exclude-result-prefixes="msxml umbraco.library mycustomprefix msxsl">
    <xsl:output method="xml" omit-xml-declaration="yes" />
    <msxsl:script language="CSharp" implements-prefix="mycustomprefix">
      <![CDATA[
            public string GetUrl()
            {
                [b]return Request.UrlReferrer.ToString();[/b]
            }
          ]]>
    </msxsl:script>
    <xsl:param name="currentPage" />
    <xsl:variable name="MyTestVariable" select="mycustomprefix:GetUrl()" />
    <xsl:template match="/">
        <xsl:value-of select="$MyTestVariable" />
    </xsl:template>
</xsl:stylesheet>


[/code]
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.