asp. net 페이지 의 모든 컨트롤, foreach, 모든 레이 블 을 반복 합 니 다.

438 단어 c#(asp.net)
for (int i = 0; i < this.Controls.Count; i++)
{
foreach (Control control in this.Controls[i].Controls)
{
if (control.HasControls())
{
//
}
else
{
if (control is Label)
{
count++;
}
}
}
}

검 은 머리:http://heisetoufa.iteye.com/

좋은 웹페이지 즐겨찾기