开发者

Adding ListItems with whitespace to a ListBox

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜