Results 1 to 2 of 2

Thread: replace :mad:

  1. #1
    Join Date
    Apr 2010
    Posts
    331

    Default replace :mad:

    I am trying to replace some characters but found out this doesn't work. Are there any suggestions for making this work?

    Code:
    <xsl:value-of select="replace(aspdnsf:Decode($pName),'- #','- Project #')" disable-output-escaping="yes"/>

    The value of $pName would be something like "Testing - #7" and after running through the above, it should say "Testing - Project # 7". Any ideas?

  2. #2
    Join Date
    Dec 2008
    Location
    Phoenix, AZ
    Posts
    367

    Default

    Hmm, we tend to use StrReplace extension call instead:

    <xsl:value-of select="aspdnsf:StrReplace($pName,'- #','- Project #')" disable-output-escaping="yes"/>
    Jan Simacek - Compunix, LLC
    AspDotNetStorefront Platinum Devnet Partner since 2005

    AspDotNetStorefront Mods and Add-Ons at http://www.ecommercecartmods.com/
    - Searching, Filtering and Sorting (like cSearch, Dealer Locator, Price Ranges, Blog)
    - Reports (like Cart Abandonment and Net Sales)
    - Customer Experience (like Question/Answers)
    - Site and Data Management (like Entity Product Mapper, Bulk Updaters, Make/Model/Year filters)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •