Nethra R S

Nethra R S

  • NA
  • 310
  • 335.2k

Type 'AjaxControlToolkit.Accordion' does not have a public property named 'AccordionExtender'.

Jul 14 2011 12:06 AM
Hi friends,

I am learning AJAX and i am stuck with this error. I am posting the html source plzz check and tell me..

 <cc1:Accordion ID="Accordion1" runat="server" FadeTransitions="True">
            <cc1:AccordionExtender ID="Accordion1_AccordionExtender" runat="server"
                Enabled="True" FadeTransitions="True" TargetControlID="Accordion1"></cc1:AccordionExtender>
          <Panes>
          <cc1:AccordionPane>
          <Header>Accordion</Header>
          <Content>
          The Accordion is a web control that allows you to provide multiple panes and display them one at a time. It is like having several CollapsiblePanels where only one can be expanded at a time. The Accordion is implemented as a web control that contains AccordionPane web controls. Each AccordionPane control has a template for its Header and its Content. We keep track of the selected pane so it stays visible across postbacks.
          </Content>
          </cc1:AccordionPane>
          <cc1:AccordionPane>
           <Header>Header</Header>
          <Content>
          The Accordion is written using an extender like most of the other extenders in the AJAX Control Toolkit. The extender expects its input in a very specific hierarchy of container elements (like divs), so the Accordion and AccordionPane web controls are used to generate the expected input for the extender. The extender can also be used on its own if you provide it appropriate input.
          </Content>
          </cc1:AccordionPane>
          <cc1:AccordionPane>
           <Header>Autosize</Header>
          <Content>
          It also supports three AutoSize modes so it can fit in a variety of layouts.

    None - The Accordion grows/shrinks without restriction. This can cause other elements on your page to move up and down with it.
    Limit - The Accordion never grows larger than the value specified by its Height property. This will cause the content to scroll if it is too large to be displayed.
    Fill - The Accordion always stays the exact same size as its Height property. This will cause the content to be expanded or shrunk if it isn't the right size.


          </Content>
          </cc1:AccordionPane>
          </Panes>
        </cc1:Accordion>
   

Answers (2)