Código PHP:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!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">
<asp:ScriptManager ID="ScriptManager1" runat="server"/>
<asp:SqlDataSource ID="sds1" runat="server" ConnectionString="server=xxxxx ; uid=sa;pwd=pass;database=Cursos;" providerName="System.Data.SqlClient" SelectCommand="select * from T_curso inner Join T_Materias on T_curso.c_id = T_Materias.c_idcurso where T_Materias.c_idcurso = 2"/>
<div>
<cc1:Accordion ID="Accordion1" runat="server" SelectedIndex="0" HeaderCssClass="accordionHeader"
HeaderSelectedCssClass="accordionHeaderSelected" ContentCssClass="accordionContent"
FadeTransitions="false" FramesPerSecond="40" TransitionDuration="250" AutoSize="None"
RequireOpenedPane="false" DataSourceID="sds1">
<Panes>
<cc1:AccordionPane ID="Pane1" runat="server" >
<Header><asp:Repeater ID="Repeater1" runat="server" DataSourceID="sds1" EnableViewState="true">
<ItemTemplate>
<asp:HyperLink ID="SamplesLink" runat="server" Text='<%#Eval("c_ncurso")%>' EnableViewState="true" /></ItemTemplate>
</asp:Repeater></Header>
<Content>
<asp:Repeater ID="Links_New" runat="server" DataSourceID="sds1" EnableViewState="true">
<ItemTemplate>
<asp:HyperLink ID="SamplesLink" runat="server" Text='<%#Eval("c_asignatura")%>' EnableViewState="true" /></ItemTemplate>
</asp:Repeater>
</Content>
</cc1:AccordionPane>
</Panes>
</cc1:Accordion>
</div>
</form>
</body>
</html>