Author: garygold | Posted on: 6/23/2010 8:34:20 PM | Views : 327

Hi,
I have some labels on my web page and I need to hide some of them  programmatically.
Thanks for help.

my code
protected void panelLegent_Load(object sender, EventArgs e)
{
         lbl_A.Style.Add("display","none");  // It's works

//I need that  the label Id have to define dynamically

          Label lbl =  new Label();
                 lbl.ID = "lbl_A";
                 lbl.Style.Add("display","none");     // it's not work
}

...

Go to the complete details ...