Sign in to follow this  

Updatepanel Does Not Render The Chart

Recommended Posts

Hi All;


I'm a bit new on FusionCharts and AJAX. I'm trying to write a program that must show some PieCharts in every 10 seconds..

Showing the specific charts works fine, but after implementing on updatepanel, it began to not to be shown..

There is nothing on the page, it is blank..

Could you please tell where I'm missing.


Design page code is below


<div class="celldiv" id="chartdiv1" style="padding-top: 10px; width: 548px; height: 305px;">


<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">




<!--Here is, where the chart have to be shown-->







here is the timer tick procedure that should update the UpdatePanel



private void timer2_Tick(object sender, System.Timers.ElapsedEventArgs e)




GlobalClass.GlobalVar += 1;


count = Convert.ToInt32(GlobalClass.GlobalVar);




UpdatePanel1.ContentTemplateContainer.Controls.Add(new LiteralControl(CreatePieChart(count)));









and createPieChart procedure is..



protected string CreatePieChart(int il)




string ilinAdi = ilAdGetir(il);


string path = "http://localhost:2488/Data/" + ilinAdi + "Pie.xml";


return FusionCharts.RenderChartHTML("FusionCharts/Pie3D.swf",path, "", ilinAdi+"Pie", "548", "305", false);





Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this