开发者

Adding ListItems with whitespace to a ListBox

开发者 https://www.devze.com 2023-02-17 19:52 出处:网络
How do I add items to a ListBox w开发者_如何转开发ith text values such as \"__foo\" etc? It seems to trim it automatically.DropDownList1.Items.Insert(0, new ListItem(HttpUtility.HtmlDecode(\"&nbsp

How do I add items to a ListBox w开发者_如何转开发ith text values such as "__foo" etc? It seems to trim it automatically.


DropDownList1.Items.Insert(0, new ListItem(HttpUtility.HtmlDecode("  ") + "foo", "foovalue"));

^^

0

精彩评论

暂无评论...
验证码 换一张
取 消