遍历页面所有TextBox控件并给它赋值为string.Empty
来源:互联网 发布:burpsuite上传php 编辑:程序博客网 时间:2024/04/29 03:28
foreach (System.Web.UI.Control control in this.Form.Controls)
{
if (control is System.Web.UI.WebControls.TextBox)
{
TextBox txt = (TextBox)control;
txt.Text = String.Empty ;
}
}
//代码简写
foreach (System.Web.UI.Control control in this.Form.Controls)
{
TextBox t = control as System.Web.UI.WebControls.TextBox;
if (t != null)
{
t.Text = String.Empty;
}
}
//举一反三,此程序可应用于大多数.NET服务器控件
- 遍历页面上所有TextBox控件并给它赋值为string.Empty
- 请编程遍历页面上所有TextBox控件并给它赋值为string.Empty?
- 遍历页面上所有的TextBox控件并给它赋值为string.Empty
- 遍历页面所有TextBox控件并给它赋值为string.Empty
- 编程遍历页面上所有TextBox控件并给它赋值为string.Empty?(webform&winform)
- 遍历页面所有TextBox控件并给它赋值为string.Empty
- 遍历页面上所有TextBox控件并给它赋值为string.Empty
- 编程遍历页面上所有TextBox控件并给它赋值为string.Empty
- 遍历页面上所有TextBox控件并给它赋值为string.Empty?
- 请编程遍历页面上所有TextBox控件并给它赋值为string.Empty?
- C# 面试题解析-请遍历页面上所有的TextBox控件并给它赋值为string.Empty
- C# 面试题解析-请遍历页面上所有的TextBox控件并给它赋值为string.Empty (转帖)
- C# 面试题解析-请遍历页面上所有的TextBox控件并给它赋值为string.Empty
- C# 面试题解析-请遍历页面上所有的TextBox控件并给它赋值为string.Empty
- 编程遍历页面上所有TextBox控件并给它赋值为string.Empty(用C#语言)
- 遍历页面所有Textbox控件并给他赋值为string.empty
- 遍历页面上所有TextBox,并赋值为String.Empty
- 遍历页面上所有TextBox控件并给它的Enabled赋值为false
- v2010下visual assist 1827的安装
- Android 几个Info系列类的总结
- AJAX 用户注册无刷新验证
- wget中文乱码解决方案
- OleDbCommandBuilder批量更新数据库[Session的应用]
- 遍历页面所有TextBox控件并给它赋值为string.Empty
- .net实现邮件发送代码
- URL参数解码
- 图解步步教新手如何重装系统
- 基础加强第八天
- 下来的打招呼来了...
- dynamic sampling used for this statement
- 快速修改IP地址
- 华科00年计算机考研复试机试