using RoundedCornersExtender in asp.net wizard control

Last post 06-06-2008 1:36 AM by Jonathan Shen – MSFT. 1 replies.

Sort Posts:

  • using RoundedCornersExtender in asp.net wizard control

    05-30-2008, 6:44 PM
    • Member
      34 point Member
    • ITSASPDOTNET
    • Member since 07-07-2006, 1:10 PM
    • Posts 16

    Hi, I am trying to use RoundedCornersExtender in asp.net wizard control to give the rounded shape to the link button. I have placed the code here

    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
        <div>
            <asp:Wizard ID="Wizard1" runat="server">
                <WizardSteps>
                    <asp:WizardStep runat="server" Title="Step 1"> </asp:WizardStep>
                    <asp:WizardStep runat="server" Title="Step 2">
                    </asp:WizardStep>
                </WizardSteps>
                <SideBarTemplate>
                    <asp:DataList ID="SideBarList" runat="server">
                          <SelectedItemStyle font-bold="True" />
                        <ItemTemplate>
                            <asp:LinkButton ID="SideBarButton" runat="server" BackColor="#EFF3FB" Font-Names="Verdana"
                            Font-Size="13px" ForeColor="#284E98" Height="16px" Width="175px" Font-Underline="false"  CssClass="sideBarLinkButton"
                            CausesValidation="false"></asp:LinkButton>
                            <cc1:RoundedCornersExtender ID="SideBarRoundCornerExtender" runat="server" TargetControlID="SideBarButton"
                                     Radius="10" Corners="All">
                           </cc1:RoundedCornersExtender>
                        </ItemTemplate>
                    </asp:DataList>
                </SideBarTemplate>
            </asp:Wizard>
          </div>    </form>

    I get following error:

    Extender controls may not be registered after PreRender.

    Can anyone please suggest me what is wrong happening? 

    Thanks.

     

  • Re: using RoundedCornersExtender in asp.net wizard control

    06-06-2008, 1:36 AM
    Answer

    Hi ITSASPDOTNET,\

    As far as I know, RoundedCornersExtender won't work on LinkButton(Button,ImageButton controls).  You can find the details on RoundedCornersBehavior.js.  You shall attach a Panel to the extender. 

    Best regards,

    Jonathan

     

    Jonathan Shen
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (2 items)
Microsoft Communities