asp.net控件的遍历
来源:互联网 发布:windows清理 编辑:程序博客网 时间:2024/05/22 12:30
foreach(Control con in this.Controls[1].Controls)
{
if(con is TextBox)
{
((TextBox)con).Text="";
}
}//这段代码执行成功,但我不明白这里的1代码什么?
但是基他的的控件比如Label,LinkButton控件如何判断?
foreach (System.Web.UI.Control Lab in this.Controls)
{
if (Lab is Label)
{
((Label)Lab).Visible = true;
}
}
foreach (System.Web.UI.Control Lab in this.Controls[1].Controls)
{
if (Lab is Label)
{
((Label)Lab).Visible = false;
}
}
- asp.net控件的遍历
- asp.net遍历控件
- ASP.NET 控件遍历
- 遍历ASP.Net页面的某个控件
- 遍历ASP.NET页面控件
- 遍历ASP.NET页面控件
- 遍历ASP.NET页面控件
- asp.net遍历TextBox控件
- ASP.NET 服务器控件遍历
- ASP.NET控件Repeater遍历
- ASP.NET遍历控件的几种方法
- ASP.NET遍历页面的所有button控件
- 遍历获取ASP.NET页面控件的名称及值
- 循环遍历asp.net repeater控件的方法
- 遍历网页中所有的控件(asp.net)
- [翻译]遍历ASP.NET页面控件
- [翻译]遍历ASP.NET页面控件
- ASP.NET 页面控件深层遍历
- 深入分析Oracle字符集(zt)
- oracle中移动表所在的表空间
- C/C++函数的借口定义
- 深入研究Mysql字符集设置以及排序方式
- DTV/IPTV区别
- asp.net控件的遍历
- 异步函数的同步调用(转载)
- 默认值FLEX
- df 命令的用法
- ubuntu分辨率1024*768无法选择解决方法
- du 命令的用法
- 设计模式之Visitor(Collection的观点)
- 键盘各键对应的ASCII码值
- 基于OGRE的3D的虚拟场景漫游系统(Visual_WEB3D)