Click here to Skip to main content
15,940,550 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi...
In my application,i need to show details view inside accordion. I tried by this,
ASP.NET
<asp:Accordion ID ="acc1" runat="server">
    <Panes>
    <asp:AccordionPane ID="ap1" runat="server">
    <Header>Details1</Header>
    <Content>
    <asp:DetailsView ID="dtv1" runat="server">
    <Fields>
    <asp:BoundField DataField="" HeaderText="Apple">
    </asp:BoundField>
    <asp:BoundField  DataField="" HeaderText="Orange">
    </asp:BoundField>
    </Fields>
    </asp:DetailsView>

    </Content>
    </asp:AccordionPane>
    <asp:AccordionPane ID="ap2" runat="server">
    <Header>Details2</Header>
    <Content>
    <asp:DetailsView ID="dtv2" runat="server">
    <Fields>
    <asp:BoundField  DataField="" HeaderText="Banana">
    </asp:BoundField>
    <asp:BoundField DataField="" HeaderText="Mango">
    </asp:BoundField>x
    </Fields>
    </asp:DetailsView>
    </Content>
    </asp:AccordionPane>
    </Panes>
</asp:Accordion>


But its not working. I dont know how to get this,plz correct my code and guide me soon....
Posted
Updated 25-Apr-12 18:56pm
v2
Comments
Praveen Meghwal 26-Apr-12 0:56am    
Format the code.
Priyaaammu 26-Apr-12 1:15am    
how to format it...what is the use of formatting the code?

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900