Link to home
Start Free TrialLog in
Avatar of minglelinch
minglelinch

asked on

Why panel BackColor does not show?

I have panel define as

 <asp:Panel ID="pagerpanel" runat="server" GroupingText="Open a Pager" style="display:none" Font-Size="Smaller" BackColor="#F2F4FE" BorderColor="#F4FAFE">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>    
   ....
   ....

But the BackColor does not show no matter what color I changed to. I also removed the style property, the BackColor still not shows. I have attached the file. Please help.
I have the same panel definition on other pages. It shows on other pages without a problem.

BackColorNotShow.aspx
Avatar of Bill Nolan
Bill Nolan
Flag of United States of America image

You have to give the panel a discrete size.  E.g.,

Width="100px"
Height="100px"
"Discrete" may not be best word choice, as you could also use

Width="50%"

...perhaps "distinct" or "defined"?  lol
Avatar of Easwaran Paramasivam
You have to set width and height attributes. Please check http://asp-net-example.blogspot.com/2009/04/how-to-set-change-panel-backcolor.html
ASKER CERTIFIED SOLUTION
Avatar of minglelinch
minglelinch

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of minglelinch
minglelinch

ASKER

I made it work.