会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
张亮1988
博客园
首页
博问
闪存
新随笔
订阅
管理
2012年3月13日
遍历页面中所有的TextBox
摘要: 一,用foreach: foreach(Control cl in this.Page.FindControl("Form1").Controls) { if(cl.GetType().ToString()=="System.Web.UI.WebControls.TextBox") { ((TextBox)cl).Text="";...
阅读全文
posted @ 2012-03-13 19:01 张亮1988
阅读(367)
评论(0)
推荐(0)
编辑