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
<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
"Discrete" may not be best word choice, as you could also use
Width="50%"
...perhaps "distinct" or "defined"? lol
Width="50%"
...perhaps "distinct" or "defined"? lol
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I made it work.
Width="100px"
Height="100px"