Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

I have an Accordion Pane using AJAX Control Toolkit in my application.
Data from dataabase is being populates in the accordion. I have a button outside the accordion and want to convert the data of the selected accordion only into PDF. The only issue is that how can I get the data of the selected accordion pane data.

Each Pane has different data as it is dynamically populated.

Inshort I have to Convert the selected accordion pane data into PDF using itextsharp service.

Please help.

Thanks.
AR
Posted
Updated 10-Nov-13 20:43pm
v2
Comments
Thanks7872 11-Nov-13 2:48am    
What is this "data"? Have you used any databound control to display it to the page?
AR547 11-Nov-13 2:53am    
for (int i = 0; i < weeks; i++)
{
to = fr.AddDays(6);

if (to >= to_dt)
{
to = to_dt;
}
AccordionPane pane = new AccordionPane();
pane.HeaderContainer.Controls.Add(new LiteralControl("From " + fr.ToString("dd-MMM-yyyy") + " To " + to.ToString("dd-MMM-yyyy")));
pane.ContentContainer.Controls.Add(new LiteralControl(gen_table(loc, dept, fr.ToString("dd-MMM-yyyy"), to.ToString("dd-MMM-yyyy"))));
MyAccordion.Controls.Add(pane);
MyAccordion.SelectedIndex = i;
fr = to.AddDays(1);
}
AR547 11-Nov-13 2:54am    
and gen_table(loc, dept,fromdate,todate) is a method by which m getting the data in simple HTML tables.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900