ylbtech-class:purple-class2
A, 返回顶部

1,默认选项切换

#region 默认选项切换
public delegate IList<SelectListItemInfo> DelegateDrop(IList<SelectListItemInfo> dals, string arrayStr);
/// <summary>
/// 默认选项切换
/// </summary>
/// <param name="arrayStr"></param>
/// <param name="dalsTemple"></param>
/// <returns></returns>
public IList<SelectListItemInfo> GetSwitch(string arrayStr, IList<SelectListItemInfo> dalsTemple)
{
IList<SelectListItemInfo> dals = new List<SelectListItemInfo>();
string[] array = arrayStr.Split(',');
IList<SelectListItemInfo> dalsRole = dalsTemple;
foreach (SelectListItemInfo item in dalsRole)
{
SelectListItemInfo dal = item;
if (array.Contains(item.Value))
{
dal.Selected = "selected=\"checked\"";
}
dals.Add(dal);
} return dals;
}
#endregion

2,

3,

4,

5,

6,

B,返回顶部

6,

7,

8,

9,

10,

11,

C,返回顶部

11,

purple-class2-默认选项切换-LMLPHP作者:ylbtech
出处:http://storebook.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
05-06 04:50