Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all
iam using ajax accordionpane in my vb.net page.
i wanted to load data individually when the pane is loaded because data to be loaded is larger how can i do that one
Posted

1 solution

Hi,

See this Client code:

  <%@ Page Language="VB" AutoEventWireup="true" CodeFile="SampleAcordion.aspx.vb" Inherits="SampleAcordion" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <div>
        <table width="100%">
            <td align="center">
                <h2>
                    Sample Accordion by Algem
                </h2>
            </td>
        </table>
    </div>
    <div style="width: 98%; margin-top: 5px;">
        <cc1:Accordion ID="Accordion1" runat="server" ContentCssClass="tableBG" AutoSize="none">
            <Panes>
                <cc1:AccordionPane ID="AccordionPane1" runat="server">
                    <Header>
                        <div class="accordionHeader" style="cursor: pointer;">
                            <table>
                                <tr>
                                    <td>
                                        <img src="images/accordionHeaderIcon.png" />
                                    </td>
                                    <td>
                                        <span  style="color:Silver;">Information</span>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </Header>
                    <Content>
                        <table width="80%" frame="box">
                            <td>
                                <asp:Label ID="Label1" runat="server" Text="Accordion 1 contents sample "></asp:Label>
                            </td>
                        </table>
                    </Content>
                </cc1:AccordionPane>
                <cc1:AccordionPane ID="AccordionPane4" runat="server">
                    <Header>
                        <div class="accordionHeader" style="cursor: pointer;">
                            <table>
                                <tr>
                                    <td>
                                        <img src="images/accordionHeaderIcon.png" />
                                    </td>
                                    <td>
                                        <span  style="color:Silver;">Benefits</span>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </Header>
                    <Content>
                        <table width="80%" frame="box">
                            <td>
                                <asp:Label ID="Label2" runat="server" Text="Accordion 2 contents sample "></asp:Label>
                            </td>
                        </table>
                    </Content>
                </cc1:AccordionPane>
                <cc1:AccordionPane ID="AccordionPane2" runat="server">
                    <Header>
                        <div class="accordionHeader" style="cursor: pointer;">
                            <table>
                                <tr>
                                    <td>
                                        <img src="images/accordionHeaderIcon.png" />
                                    </td>
                                    <td>
                                        <span style="color:Silver;">Scan Documents</span>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </Header>
                    <Content>
                        <table width="80%" frame="box">
                            <td>
                                <asp:Label ID="Label3" runat="server" Text="Accordion 3 contents sample "></asp:Label>
                            </td>
                        </table>
                    </Content>
                </cc1:AccordionPane>
            </Panes>
        </cc1:Accordion>
    </div>
    </form>
</body>
</html>


Hope this fit to you needs...


Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Regards,

Algem
 
Share this answer
 
v2

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