开发者

How would you create a Fancy Panel which applies extra styles?

开发者 https://www.devze.com 2022-12-12 19:51 出处:网络
I would like a FancyPanel Control that automatically applies styles the content in it, for example <asp:FancyPanel runat=\"server\" id=\"pnl1\">

I would like a FancyPanel Control that automatically applies styles the content in it, for example

<asp:FancyPanel runat="server" id="pnl1">
    <Header>
      Header Text
    </Header>
    <Body>
        //any regular aspx markup
    </Body>
    <Footer>
        Footer Text
    </Footer>
</asp:FancyPanel>

So basically when this gets rendered I can now wrap everything in the header in a div with a bold text style and add rounded corners (I don't need advice for styling, just the FancyPanel side of things, an empty div is good enou开发者_JAVA技巧gh). All the Header, Body and Footer need to be able to accept regular server controls to be embedded in them.

How do I create this type of control?

Thanks!


If I understand your question, then you need template custom control.

0

精彩评论

暂无评论...
验证码 换一张
取 消