Click here to Skip to main content
12,405,700 members (62,437 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET Ajax
.accordion {
           width: 400px;
       }
 
       .accordionHeader {
           border: 1px solid #2F4F4F;
           color: white;
           background-color: #2E4d7B;
           font-family: Arial, Sans-Serif;
           font-size: 12px;
           font-weight: bold;
           padding: 5px;
           margin-top: 5px;
           cursor: pointer;
       }
 
       .accordionHeaderSelected {
           border: 1px solid #2F4F4F;
           color: white;
           background-color: #5078B3;
           font-family: Arial, Sans-Serif;
           font-size: 12px;
           font-weight: bold;
           padding: 5px;
           margin-top: 5px;
           cursor: pointer;
       }
 
       .accordionContent {
           background-color: #D3DEEF;
           border: 1px dashed #2F4F4F;
           border-top: none;
           padding: 5px;
           padding-top: 10px;
       }
 
<asp:Accordion   
    ID="Accordion1"   
    CssClass="accordion"  
    HeaderCssClass="accordionHeader"  
    HeaderSelectedCssClass="accordionHeaderSelected"  
    ContentCssClass="accordionContent"   
    runat="server">  
<panes>  
    <asp:AccordionPane ID="AccordionPane1" runat="server">  
        <Header>Employee</Header>
Posted 22-Dec-12 6:17am
Comments
Sandeep Mewara 22-Dec-12 12:19pm
   
Your question is not too clear. You post Accordian HMTL... and what are you expecting back?
Salman Farooqui 22-Dec-12 12:21pm
   
I Was trying Accordion I tried this on my aspx page but when clicking on header
Nothing is happening that is one pane should close other should open.this is not hapening what am i missing
Surendra0x2 22-Dec-12 12:22pm
   
Did you attach Script manager?
Salman Farooqui 22-Dec-12 12:23pm
   
I have used Script manager in master page
Surendra0x2 22-Dec-12 12:27pm
   
u using accordion control on child page?
Salman Farooqui 22-Dec-12 12:28pm
   
Yes I am using it in a Form Which Opens in Master Page

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 22 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100