最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp.net 遍历一个所有控件
时间:2008-07-30 编辑:简简单单 来源:一聚教程网
遍历一个用户控件里的所有控件
///
/// 找控件
///
/// 控件ID
/// 控件集合
///
public Control FindControlPoint(string ctlID, ControlCollection ctlColl)
{
Control retCtl = null;
foreach (Control cc in ctlColl)
{
if (cc.ID == ctlID)
{
retCtl = cc;
break;
}
retCtl = FindControlPoint(ctlID, cc.Controls);
if (null != retCtl)
{
break;
}
}
return retCtl;
}
-
上一个: net 实现联级菜单
-
下一个: asp.net 通过拼音搜索中文的方法
相关文章
- asp.net中关于AppDomain遍历的方法 01-11
- C#复制数组的两种方式及效率比较解读 10-24
- ASP.NET Identity用法解析 10-24
- ASP.NET MVC使用Identity增删改查用户介绍 10-24
- C语言中atoi函数模拟实现介绍 10-18
- .Net反向代理组件Yarp用法介绍 10-10