public static ArrayList BtnList(System
int nPageControls = page
ArrayList btnText = new ArrayList();
for (int i =
foreach (System
if (control is Button)
//btnText
btnText
}
}
}
return btnText;
}
protected void Page_Load(object sender
ArrayList arrayList = new ArrayList();
System
arrayList = BtnCtrList
foreach (object o in arrayList)
ListBox
}
}
From:http://tw.wingwit.com/Article/program/net/201311/15466.html