Great set of controls.. I refuse to develop AJAX in any other language!!..
Just one small problem, i have a panel that i want to use for messages, error or success, it will have diferent colours for each, red and orange i'm trying to implement it so that i only need to change the CSSClass of the panel, without touching the extender, i like to separate styling from code, but the corners are not picking up the colour of the panel! This is what i've got
<asp:Panel ID="InfoPanel" runat="server" CssClass="info-panel-default" Visible="False"> <div> Success: Information submitted successfully. </div> </asp:Panel> <ajaxToolkit:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server" Radius="3" TargetControlID="InfoPanel"> </ajaxToolkit:RoundedCornersExtender>
the CSS:
.info-panel-default {background-color:#fad163;width:300px; margin:0 auto; font-size:12px;text-align:center;font-weight:bold;padding:3px;}.info-panel-default div{background-color:#fad163;}
Any help much appreciated...
RoundedCorners looks at the color of the TargetControlID when it initializes and then uses that color to create the rounded elements. Have a look at its set_Color function for a way to change the color via script at a later time.
0 件のコメント:
コメントを投稿