views:

218

answers:

1

I have a web page rendering two pie charts using the ASP.NET 3.5 chart controls. On my dev server (IIS 5.1) the charts load well. On the QA server, the charts load pretty slowly and sometimes one or both of them doesn't even load. alt text

I am loading the charts using the codebehind tag. Is there anything else that could be done to make these charts run faster?

Note: I was previously using dotNETCHARTING and never had any issues with it. Nothing else has changed except for the charting engine.

A: 

Try turning on page tracing and stick some tracing code in your code behind such as:

Trace.Write("Opening DB connection");
Trace.Write("Gathering Data");
Trace.Write("Closing DB connection");
Trace.Write("Starting Graph");
Trace.Write("finished graph");

And then check how long each one takes to execute. This will give you a clue as to what part is slowing the page down, once you know that you can dig deeper into why it is happening.

See here for more : http://www.15seconds.com/Issue/020910.htm

Good luck!

Kaius