[String].Join to concatenate HTML strings RRS feed

  • Question

  • User249648003 posted

    Is there a way to use [string].Join to concatenate html stings including spaces? I want to join html strings with a special character so I can pass them as an array to javascript from the code behind.

    Dim Array(100) As String

    ArrayString = [String].Join(",", Array)

    This works great if each item in Array is one word only, but what if each item in Array contains spaces?

    Saturday, March 21, 2009 8:01 AM


  • User-1171043462 posted

    You can loop through the arrays and do concatenation using stringbuilder

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, March 21, 2009 8:45 AM

All replies