Design :
UpdatePanel ID="updateCustomer" runat="server"
ContentTemplate
asp:PlaceHolder ID="phCustomerTestimonial" runat="server asp:PlaceHolder
ContentTemplate
asp:UpdatePanel
Codding Part:
Accordion customerTestimonialsAccordion = new Accordion();
MemberService memberService = new MemberService();
MemberData.FeedbackDataTable feedback = new MemberData.FeedbackDataTable();
int i = 0;
customerTestimonialsAccordion.ID = "customerTestimonialsAccordion";
customerTestimonialsAccordion.SelectedIndex = 0;
customerTestimonialsAccordion.FadeTransitions = true;
customerTestimonialsAccordion.FramesPerSecond = 50;
customerTestimonialsAccordion.TransitionDuration = 250;
customerTestimonialsAccordion.SuppressHeaderPostbacks = true;
feedback = memberService.GetTestimonial();
DataView feedBackView = new DataView(feedback);
foreach (DataRowView feedbackRowView in feedback)
{
AccordionPane accordionPane = new AccordionPane();
LinkButton parentCustomerTestimonial =new LinkButton();
parentCustomerTestimonial.Text = feedbackRowView["FeedbackDescription"].ToString();
parentCustomerTestimonial.ID = feedbackRowView["FeedbackID"].ToString();
accordionPane.HeaderContainer.Controls.Add(parentCustomerTestimonial);
customerTestimonialsAccordion.Panes.Add(accordionPane);
i += 1;
}
phCustomerTestimonial.Controls.Add(customerTestimonialsAccordion);
}