Código PHP:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>
<!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" >
<head id="Head1" runat="server">
<title>Accordion</title>
<style type="text/css">
.accordionCabecera
{
border: 1px solid black;
background: blue url(img/glossyback.gif) repeat-x bottom left;
font-family: Arial, Sans-Serif;
font-size: 14px;
font-weight: bold;
padding: 4px;
margin-top: 4px;
cursor: pointer;
}
.accordionContenido
{
font-family: Sans-Serif;
background-color: #fff8ab;
border: 1px solid black;
border-top: none;
font-size: 12px;
padding: 7px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager id="ScriptManager" runat="server" />
<ajaxToolkit:Accordion ID="accordionBooks" runat="server" FadeTransitions="True" FramesPerSecond="50" Width="250px" TransitionDuration="200" HeaderCssClass="accordionCabecera" ContentCssClass="accordionContenido" onitemdatabound="accordionBooks_ItemDataBound" DataSourceID="sds1">
<HeaderTemplate>
<p>
<asp:Literal ID="litCategory" runat="server" Text="Category:" />
<asp:Label ID="lblBookCategory" Text='<%# DataBinder.Eval(Container.DataItem, "category_name") %>' runat="server" />
</p>
</HeaderTemplate>
<ContentTemplate>
<asp:HiddenField ID="hdnCategoryId" Value='<%# DataBinder.Eval(Container.DataItem, "id") %>' runat="server" />
<table>
<tr>
<td>
<asp:GridView ID="gvBooks" runat="server" DataKeyNames="Id" AutoGenerateColumns="false" Width="100%">
<Columns>
<asp:BoundField DataField="id" runat="server" />
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblTitle" Text='<%# DataBinder.Eval(Container.DataItem, "Title") %>' runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblPublisher" Text='<%# DataBinder.Eval(Container.DataItem, "Publisher") %>' runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblISBN" Text='<%# DataBinder.Eval(Container.DataItem, "ISBN") %>' runat="server" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
</ContentTemplate>
</ajaxToolkit:Accordion>
<%--<asp:SqlDataSource ID="sds1" runat="server" ConnectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=D:\MisProgramas\MenuAcordeon1\App_Data\Database.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" ProviderName="System.Data.SqlClient" SelectCommand="SELECT notTitulo, notContenido, codnotCont FROM Noticias1, Noticias2" />--%>
</div>
</form>
</body>
</html>