ListItem cb = new ListItem();
cb.Text = item.IncentiveName;
cb.Value = item.IncentiveID.ToString();
cb.Attributes.Add("onclick","javascript:return showText(this)");
转载于:https://www.cnblogs.com/lingxzg/archive/2012/07/25/2607941.html