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

Thread: String Resource in Template.ascx

  1. #1
    jmcconahie is offline Junior Member
    Join Date
    Nov 2011
    Posts
    13

    Default String Resource in Template.ascx

    I created a new string resource in the admin tool. How can I call it in the template.ascx file? I tried:

    <div> (!myStringResource!) </div>

    and

    <div> (!StringResource Name="myStringResource"!) </div>

    but neither give me the value.

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

    Default

    Depends on the version you're on. For 9, you'll have to use the correctly formatted string resource token.

    On 7/8, something like this:
    (!StringResource Name="AppConfig.ManufacturerPromptPlural"!)