Insert whitespace between characters in listbox

后端 未结 4 1478

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:43

    I had the same issue and the above answers led me to this which worked for me.

    string space = " ";
                    space = Server.HtmlDecode(space);
                    line = line.Replace(" ", space);
                    ClassCodeListBox.Items.Add(line);
    

提交回复
热议问题