本文介绍了手风琴窗格选择的索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
iam在我的vb.net页面上使用ajax手风琴.
我想在加载窗格时分别加载数据,因为要加载的数据较大,我该怎么办?
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
推荐答案
<%@ 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
这篇关于手风琴窗格选择的索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!