ASP.NET Accordion Setup

ShieldUI Accordion for ASP.NET is a server-side wrapper component implemented in the ASP.NET server side component pattern. To get started using the component simply add a reference to the Shield.Web.UI assembly in your ASP.NET project.
Since this is a wrapper of the javascript accordion component, you need to include the references to the CSS and JavaScript resources in the HEAD section of your webpage:

<head id="Head1" runat="server">
<link rel="stylesheet" type="text/css" href="css/light/all.min.css" />
<script src="js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="js/shieldui-all.min.js" type="text/javascript"></script>
</head>

The javascript resources for client side component you can find on the download page under the ShieldUI JavaScript section.

In order to have intelisence into the aspx pages markup you need to add the Shield.Web.UI namespace to the <pages> node of the <system.web> section in your Web.config configuration file:

<system.web>
  <pages>
    <controls>
      <add tagPrefix="shield" namespace="Shield.Web.UI" 
        assembly=" Shield.Web.UI" />
    </controls>
  </pages>
</system.web>

The other approach is to add following line of code into your aspx page:

<%@ Register Assembly="Shield.Web.UI" Namespace="Shield.Web.UI" 
    TagPrefix="shield" %>

The ASP.NET Wrapper offers a 1:1 correspondence with the relevant properties of the jquery widget.

The code below demonstrates a javascript initialization of the widget:

$("#accordion").shieldAccordion({
    mode: "multiple",
    titleTemplate: "Title: {title}",
    contentTemplate: "<em>{content}</em>"
});

and this code demonstrates an ASP.NET one:

<shield:ShieldAccordion ID="ShieldAccordion1" runat="server" 
    Target="accordion" Mode="multiple" TitleTemplate="Title: {title}" 
    ContentTemplate="<em>{content}</em>">
</shield:ShieldAccordion>