Is it possible to have an ajax accordion control and the content and header portions with dynamic information on page_load?
<ajaxToolkit:AccordionPane ID = "AccordionPane4" runat = "server"><Header>
<a href = "" onclick = "return false;" class = "accordionLink"> <asp:Label Id="lblHeader3" runat="server" </asp:Label></a>
</Header>
<Content>
<asp:LabelID="lblContent3" runat="server"></asp:Label>
</Content>
</ajaxToolkit:AccordionPane>
Fill in dynamically??
Thanks
Hi,
You may achieve like this:
AccordionPane ap = new AccordionPane();
MyAccordion.Panes.Add(ap);
LinkButton lb = new LinkButton();
lb.Text = "hello";
ap.HeaderContainer.Controls.Add(lb);
Hope this helps.
AccordionPane ap =new AccordionPane();
I am getting an error here. Do I have to add a reference like a
using System.Ajax? I currently have the ajax dll in the bin.
It's in the namespace AjaxControltoolkit
No comments:
Post a Comment