J
JezB
Im my Page_Load method I create a label dynamically and add it to my Page:
Label l = new Label();
l.Text = "Example";
l.CssClass = "H2";
this.Controls.Add(l);
My page is linked to an external stylesheet, but when the control is
rendered it is not using the H2 style - what am I missing ?
Label l = new Label();
l.Text = "Example";
l.CssClass = "H2";
this.Controls.Add(l);
My page is linked to an external stylesheet, but when the control is
rendered it is not using the H2 style - what am I missing ?