aspnet ajax 1.0中的according控件

 在aspnet ajax 1.0的扩展包中,发现有个不错的控件according,其实意思就是折叠控件,比如一个页有三个要显示的部分,由于页面
大小,要先演示某一部分,其他部分折叠起来,(有点象OUTLOOK那个工具条的效果)。代码很简单,笔记之
 <ajaxToolkit:ToolkitScriptManager ID="ScriptManager1" runat="server" />
        <div>
            <ajaxToolkit:Accordion ID="Accordion1" runat="server" FadeTransitions="True" SelectedIndex="0" TransitionDuration="300"  HeaderCssClass="accordionHeader" ContentCssClass="accordionContent">
            <Panes>
                <ajaxToolkit:AccordionPane id="AccordionPane1" runat="server">
                <Header> AJAX PANE</Header>
                <Content>
          内容1
                               </Content>
                </ajaxToolkit:AccordionPane>
                <ajaxToolkit:AccordionPane id="AccordionPane2" runat="server">
                <Header>MY TEST PANE
                </Header>
                <Content>
     内容2
                                </Content>
                </ajaxToolkit:AccordionPane>
                <ajaxToolkit:AccordionPane id="AccordionPane3" runat="server">
                <Header>THIS IS LAST PANE
                </Header>
                <Content>
内容3
                              </Content>
                </ajaxToolkit:AccordionPane>
             </Panes>
            </ajaxToolkit:Accordion>

你可能感兴趣的:(Ajax)