遍历页面控件 并初始化控件值
private void InitLabel()
{
for (int i = 0; i < Page.Controls.Count; i++)
{
foreach (System.Web.UI.Control control in Page.Controls[i].Controls)
{
if (control is Label)
{
(control as Label).Text = "0";
}
}
}
}