标签:
string[] array = dt.Rows[0]["s_type"].ToString().Split(‘|‘);
foreach (ListItem m in cb_type.Items)
{
for (int i = 0; i < array.Length; i++)
{
if (m.Value == array[i])
{
m.Selected = true;
}
}
}
string[] strTerms = dt.Rows[0]["s_zhandian"].ToString().Split(‘|‘);
foreach (ListItem lItem in CB_zhandian.Items)
{
for (int i = 0; i < strTerms.Length; i++)
{
if (lItem.Value == strTerms[i])
{
lItem.Selected = true;
}
}
}
标签:
原文地址:http://www.cnblogs.com/candyzhmm/p/4255550.html