Click here to Skip to main content
11,704,768 members (48,711 online)
Rate this: bad
good
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 at 22-Dec-12 12:19pm
   
Your question is not too clear. You post Accordian HMTL... and what are you expecting back?
Salman Farooqui at 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 at 22-Dec-12 12:22pm
   
Did you attach Script manager?
Salman Farooqui at 22-Dec-12 12:23pm
   
I have used Script manager in master page
Surendra0x2 at 22-Dec-12 12:27pm
   
u using accordion control on child page?
Salman Farooqui at 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
0 Sergey Alexandrovich Kryukov 658
1 OriginalGriff 485
2 Andy Lanng 275
3 CPallini 242
4 Maciej Los 225
0 OriginalGriff 8,864
1 Sergey Alexandrovich Kryukov 8,245
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,606


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 22 Dec 2012
Copyright © CodeProject, 1999-2015
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