Page.FindControl("要查找的控件ID");如果你确定你找的控件是TextBox,可以这样:TextBox tb = (TextBox)Page.FindControl("theID");tb.Visible = false;