title: Why am i unable to access any of the label controls on my web form ASP.NET
body: <p>This is my code:</p>
  
  <pre><code>   public void SetLabelVisibilityFalse()
      {
          foreach(Control cntrl in this.Page.Form.Controls)
          {
              if(cntrl is Label)
              {
                  Label lbl = ((Label)cntrl);
                  lbl.Visible = false;
              }
          }
      }
  </code></pre>
  
  <p>but i am unable to access any of the control ... it is setting NO label on the page as false.. where am i wrong?</p>