May 14, 2011, 5:01 PM
[CLOSED] How to set Panel background color?
Hey!
I have tried the following (in code-behind) to set a panels background color.
Alt 1:
In markup:
I have tried the following (in code-behind) to set a panels background color.
Alt 1:
PanelComment.Cls = "background-color: yellow;"
Alt 2:PanelComment.Cls = "background: yellow;"
Alt 3:In markup:
<style type="text/css">
.yellowColor {
background: #CCFFCC;
}
</style>
In code-behind:PanelComment.AddClass("yellowColor");
None has worked. What am I missing?
Last edited by geoffrey.mcgill; May 14, 2011 at 6:49 PM.
Reason: [CLOSED]