quiero que no se cargue de una la infromacion ,sino que solo al pulsa el boton del que tiene se habra la ventana del accordeon
les dejo lo que tengo
[IMG][/IMG]
codigo
Código PHP:
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Untitled Page</title>
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<div>
<ajaxToolkit:Accordion ID="MyAccordion" runat="server"
SelectedIndex="0"
HeaderCssClass="accordionHeader"
ContentCssClass="accordionContent"
FadeTransitions="true"
FramesPerSecond="40"
TransitionDuration="250"
AutoSize="None">
<Panes>
<ajaxToolkit:AccordionPane ID = "AccordionPane1" runat = "server">
<Header>
<table style="width: 750px">
<tr>
<td bgcolor="#00cc66" style="width: 100px; font-weight: bold; font-size: 10pt; color: #ffffff; font-family: Arial;">
<asp:ImageButton ID="ImageButton2" runat="server" OnClientClick='return false;' ImageUrl="~/opentray.gif" />
Repuestos</td>
</tr>
</table>
</Header>
<Content>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataKeyNames="codarea"
DataSourceID="SqlDataSource1">
<RowStyle BackColor="White" ForeColor="#003399" />
<Columns>
<asp:BoundField DataField="codarea" HeaderText="codarea" ReadOnly="True" SortExpression="codarea" />
<asp:BoundField DataField="nomarea" HeaderText="nomarea" SortExpression="nomarea" />
<asp:CommandField ButtonType="Button" ShowSelectButton="True" />
</Columns>
<FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
<PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
<SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
<HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
</asp:GridView>
</Content>
</ajaxToolkit:AccordionPane>
</Panes>
</ajaxToolkit:Accordion>
<br />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:instrumentosConnectionString %>"
SelectCommand="SELECT * FROM [areas]"></asp:SqlDataSource>
</div>
</form>
</body>
</html>
de antemano saludos