Insert whitespace between characters in listbox

后端 未结 4 1469

I am trying to insert items into a listbox in my asp.net C# application

I concatenate some values and put whitespace in between them but it doesn\'t show up in the l

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-14 04:46

    string spaces = Server.HtmlDecode("    "); 
    
    lt.Text = ItemName + spaces + barcode + spaces + price; // works
    

提交回复
热议问题