2012年3月24日土曜日

Rounded Corner Extender - loses background colour

I've just moved from 'Atlas' to the Ajax 1.0, and have overcome most of the problems that threw up, except for one. My rounded corner extender is losing the background colour of the panel it is acting on and replaces it with the colour from the page background image. Anyone else come across this and knows how I can fix it?


Cheers,


Sam

I'm having the same problem.
I noticed that defining the style elements in the panel-style attribute, solves the problem, but it's not what i want.

Here an example of the problem and a possible fix. Anyone else with a better solution?

<%

@.PageLanguage="C#"AutoEventWireup="true"CodeFile="Default.aspx.cs"Inherits="_Default" %>

<!

DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<

htmlxmlns="http://www.w3.org/1999/xhtml">

<

headrunat="server"><title>Untitled Page</title><style>.cssPanel

{

width:720px;background:#fffafa;

}

</style>

</

head>

<

bodystyle="background-color: gray; padding: 10 10 10 10px;"><formid="form1"runat="server"><asp:ScriptManagerID="ScriptManager1"runat="server"/><ajaxToolkit:RoundedCornersExtenderID="rce1"runat="server"TargetControlID="panel1"Radius="6"/><asp:PanelID="panel1"CssClass="cssPanel"runat="server">

Panel1

</asp:Panel><br/><ajaxToolkit:RoundedCornersExtenderID="rce2"runat="server"TargetControlID="panel2"Radius="6"/><asp:PanelID="panel2"style="background:#fffafa;width: 720px;"runat="server">

Panel2

</asp:Panel></form>

</

body>

</

html>

0 件のコメント:

コメントを投稿