Home arrow JavaScript arrow Page 4 - The Accordion Component in the AJAX Control Toolkit
JAVASCRIPT

The Accordion Component in the AJAX Control Toolkit


The Accordion component is one of the many components in the AJAX Control Toolkit (ACT). The ACT is a Microsoft Community project built upon ASP.NET 2.0 AJAX Extensions and will be a repository of web-client components.

Author Info:
By: Jayaram Krishnaswamy
Rating: 4 stars4 stars4 stars4 stars4 stars / 35
March 20, 2007
TABLE OF CONTENTS:
  1. · The Accordion Component in the AJAX Control Toolkit
  2. · The Accordion Component
  3. · Creating a web page displaying an Accordion
  4. · The design view of the Accordion
  5. · The page displayed on the browser

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
The Accordion Component in the AJAX Control Toolkit - The design view of the Accordion
(Page 4 of 5 )

The next picture shows the design view of the JAccordion.aspx page. The ScriptManager is the first item added. If you forget to add the ScriptManager and add the Accordion you will be presented with an error message.

The Source Code Listing

This is the complete listing of JAccordion.aspx page for the above design.

<%@ Page Language="C#"
    AutoEventWireup="true"
    CodeFile="JAccordion.aspx.cs"
    Inherits="Accordion_JAccordion" %>

<%@ Register Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="ajaxToolkit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
  <title>Untitled Page</title>
</head>
<body>
  <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1"
      runat="server">
    </asp:ScriptManager>
    <ajaxToolkit:Accordion ID="Accordion1"
      runat="server" ContentCssClass="accordionContent"
      HeaderCssClass="accordionHeader"
      TransitionDuration="200"
      AutoSize="Fill"
      FadeTransitions="true"
      SelectedIndex="0" Height="300px" Width="500px"
      BorderWidth="1px" BorderColor="DarkOrange">

      <Panes>
        <ajaxToolkit:AccordionPane ID="AccordionPane1"
          runat="server" BackColor="Aquamarine" >
          <Header >Htek</Header>
          <Content>A thing of beauty is a joy for ever </Content>
        </ajaxToolkit:AccordionPane>
        <ajaxToolkit:AccordionPane ID="AccordionPane2"
          runat="server" BackColor="AliceBlue" >
          <Header>Hodentek</Header> 
          <Content><p><a href="http://hodentek.blogspot.com"> Jay's Hodentek Blog</a></p></Content> 
        </ajaxToolkit:AccordionPane>
        <ajaxToolkit:AccordionPane ID="AccordionPane3"
          runat="server" BackColor="AntiqueWhite" >
          <Header>ASP Free</Header>
          <Content><asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
          </Content> 
        </ajaxToolkit:AccordionPane> 
      </Panes> 
    </ajaxToolkit:Accordion>

  </form>

</body>
</html>


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Tutorials for Beginners
- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 4 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials