【发布时间】:2012-05-16 14:12:10
【问题描述】:
以下是我的代码。
protected void Button3_Click(object sender, EventArgs e)
{
var newLsit = new List<string>();
newLsit.Add("1 1");
newLsit.Add("1 1");
newLsit.Add("1 1");
this.DropDownList1.DataSource = newLsit;
this.DropDownList1.DataBind();
}
When dropdown list displays the values all the values are coming as "1 1" "1 1" "1 1"
如何同时显示额外的空格并避免这种修剪?
【问题讨论】:
标签: asp.net drop-down-menu texttrimming