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 5 of 5

Thread: Use of stringresource in input in XML package

  1. #1
    Sarky is offline Member
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    74

    Default Use of stringresource in input in XML package

    Hi all,

    Is it possible to use a string resource for the value of a input type = submit.

    Code in the xmlpackage =
    HTML Code:
    &#0160;<input type="submit" value="Search" name="B1" />
    But the value "Search" should be depending on the localization of the site and therefor a translation.

    I tried to use

    HTML Code:
    <xsl:value-of select="aspdnsf:StringResource('search.aspx.5', $LocaleSetting)" disable-output-escaping="yes" />
    I put it between the quotes, but it doesn't work.

    Anybody??

    Thnx!!

    Inge
    Regards,

    Inge van Sark
    BitWise

    Using ML 8.0 VB and ML 9.0 VB

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    We do this in a couple of XML packages already (check out product.kitproduct.xml.config package for example):

    Code:
    <xsl:attribute name="type">submit</xsl:attribute>
    <xsl:attribute name="value"><xsl:value-of select="aspdnsf:StringResource('showproduct.aspx.17')"/></xsl:attribute>

  3. #3
    Sarky is offline Member
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    74

    Default Thnx

    Tried it right now and it works.
    Thnx a lot.

    Regards,

    Inge van Sark
    BitWise

    Using ML 8.0 VB and ML 9.0 VB

  4. #4
    Sarky is offline Member
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    74

    Default Can you also help me with

    Can you also help me with this related problem:

    We made a matchingsections.nl-NL.
    But it isn't shown in sendform.aspx.

    I guess because the page.search.xml.config doesn't apply the localization when building the string for an image.

    HTML Code:
    <img border="0" src="{concat('skins/Skin_', aspdnsf:SkinID(), '/images/matchingcategories.gif')}"></img>
    Does anybody know how to do this??

    Thanx,

    Inge
    Regards,

    Inge van Sark
    BitWise

    Using ML 8.0 VB and ML 9.0 VB

  5. #5
    Sarky is offline Member
    Join Date
    May 2006
    Location
    The Netherlands
    Posts
    74

    Default Found it

    HTML Code:
    <img align="bottom" border="0" src="{concat('skins/Skin_', aspdnsf:SkinID(), '/images/matchingproducts.', $LocaleSetting, '.gif')}"></img>
    Regards,

    Inge van Sark
    BitWise

    Using ML 8.0 VB and ML 9.0 VB