foreach (Control c in this.Controls)
        {
            if (c is TextBox)
            {
                TextBox text = (TextBox)c;
                text.Style.Add("border", "0px");
                text.ReadOnly = true;
            }
        }
- 本文标题: ASP.NET 遍历服务器控件的使用方法
- 文章分类:【.NET/Web】
- 非特殊说明,本文版权归【胡同里的砖头】个人博客 所有,转载请注明出处.