日期:2014-05-17 浏览次数:20423 次
Dim bool As Boolean = False For Each item In Me.Controls If item.GetType.ToString = "System.Web.UI.HtmlControls.HtmlInputText" Then Dim control = TryCast(item, System.Web.UI.HtmlControls.HtmlInputText) If control.ID = "b1" Then bool = True Exit For End If End If Next