Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: AppConfig Link?

  1. #1
    Tek7 is offline Senior Member
    Join Date
    May 2006
    Posts
    137

    Default AppConfig Link?

    I can't quite seem to get the syntax for this...


    <a href='http://<xsl:value-of select="aspdnsf:AppConfig('LiveServer')" disable-output-escaping="yes" />'> www.<xsl:value-of select="aspdnsf:AppConfig('LiveServer')" disable-output-escaping="yes" />
    </a>

    I'm trying to make a link using the AppConfig value for LiveServer.

  2. #2
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    Try this
    Code:
    <a href="{aspdnsf:AppConfig('LiveServer')}">
       <xsl:value-of select="concat('www.',aspdnsf:AppConfig('LiveServer'))"/>
    </a>
    or even better
    Code:
    <xsl:param name="pLiveServer" select="aspdnsf:AppConfig('LiveServer')"/>
    ...
    ...
    <a href="{$pLiveServer}">
       <xsl:value-of select="concat('www.',$pLiveServer)"/>
    </a>
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  3. #3
    Tek7 is offline Senior Member
    Join Date
    May 2006
    Posts
    137

    Default

    Perfect! Thank you!