我试图使用GridView和UpdatePanels构建一种Accordion效果。我在将所有东西捆绑在一起时遇到问题:ASP.Net:在GridView中使用UpdatePanel
<asp:GridView ID="gridMain"
runat="server"
...
>
<Columns>
...
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<span>Id:<%# Eval("Id") %></span>
<a href="/* javascript code to open the updatepanel??*/" title="Open"><img ..../></a>
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:PlaceHolder runat="server" Visible="false">
<asp:Label Text="??"/>
</asp:PlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
如何使用javascript打开更新面板?
我从来没有尝试数据控件有UpdatePanel的,甚至不知道这是否会工作。您可能想尝试JQuery的手风琴效果。 – 2009-09-17 15:00:53