Thursday, December 25, 2014

Div style changing using asp.net C# code

In order to show or hide a label, set the Visible property, for example: Label4.Visible = False. To manipulate a group of labels, put them inside a Panel and change the visibility of the panel.


If you want to access the display property, then try this example: Label4.Style.Add(HtmlTextWriterStyle.Display, “none”).


If you prefer separate CSS, then: Label4.CssClass = "SomeClass".


The http://forums.asp.net/ forums will help you too.


No comments:

Post a Comment