System.Web.UI.WebControls.ListItem item = new System.Web.UI.WebControls.ListItem();
item.Text = Dshoticon.Tables[0].Rows[hoticoni][“LM_Hoticon_Title”].ToString();
item.Value = “Lmskinhotspot” + Dshoticon.Tables[0].Rows[hoticoni][“LM_Hoticon_XX”].ToString();
item.Attributes.Add(“data-img-src”, Dshoticon.Tables[0].Rows[hoticoni][“LM_Hoticon_XXXXXXXX”].ToString());
//item.data-img-src = Dshoticon.Tables[0].Rows[hoticoni][“LM_Hoticon_XXXXXXXXXXXXXXXXX”].ToString();
imagepicker.Items.Add(item);
下拉中除了value与text 还与一个预留的 item.Attributes.Add 可以解决自定义option的问题!