程晓晖

博客园 首页 新随笔 联系 订阅 管理

foreach (Control control in this.Controls[0].Controls)
            {
                if (control is HtmlForm)
                {
                    foreach (Control con in control.Controls)
                    {
                        if (con is ContentPlaceHolder)
                        {
                            foreach (Control ctrl in con.Controls)
                            {
                                   string id = ctrl.UniqueID;
                                    if (ctrl  is  Label)
                                    {
                                        this.TextBox1.Text = "abc";
                                    }
                            }
                        }
                    }
                }
            }

posted on 2011-01-21 13:56  fumen  阅读(184)  评论(0编辑  收藏  举报