日期:2014-05-16 浏览次数:20624 次
<asp:DataList id="DataList3" runat="server" DataSourceID="SqlDataSource1" Height="33px" Width="755px" DataKeyField="CourseId">
<ItemTemplate>
<cc1:Accordion ID="Accordion1" HeaderCssClass="accordionHeader" ContentCssClass="accordionContent" SuppressHeaderPostbacks="true" RequireOpenedPane="false" runat="server">
<Panes>
<cc1:AccordionPane ID="AccordionPane1" runat="server" >
<Header> <asp:Label id="Label7" runat="server" Text=' <%# Bind("CourseName") %>'> </asp:Label> </Header>
<Content>
<asp:DataList ID="DataList" runat="server" DataSourceID="SqlDataSource2" DataKeyField="">
<ItemTemplate>
<asp:Label id="Label6" runat="server" Text=' <%# Bind("LWContent") %>'> </asp:Label>
</ItemTemplate>
</asp:DataList>
</Content>
</cc1:AccordionPane>
</Panes>
</cc1:Accordion>
</ItemTemplate>
</asp:DataList>
<asp:SqlDataSource id="SqlDataSource1" runat="server" SelectCommand="SELECT [CourseId], [CourseName] FROM [CourseLWInfo] WHERE ([Tid] = @Tid)" ConnectionString=" <%$ ConnectionStrings:LoreMartConnectionString %>">
<SelectParameters>
<asp:SessionParameter Name="Tid" SessionField="TeacherId" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>