- Joined
- Sep 10, 2008
- Messages
- 2
- Reaction score
- 0
I found some code here which appears to be a very simple way to add a pie chart to an aspx page. The problem is that I can't even get the sample code to run and I'm not sure why -- something doesn't look right, but I don't know how to fix it ...
The sample is 2 files -- an ASPX and an ASCX and I've created the necessary "PieChartImages" subfolder:
I've attached the files. (Remove the .txt extension and change the extension accordingly.)
I get the following error
HELP!!!!! I've emailed the original author, but I've been waiting a couple of days now and don't expect to hear from him at this point ...
The sample is 2 files -- an ASPX and an ASCX and I've created the necessary "PieChartImages" subfolder:
I've attached the files. (Remove the .txt extension and change the extension accordingly.)
I get the following error
IIS Error said:Server Error in '/' Application.
--------------------------------------------------------------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'PieChart_ascx' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 14: ExamplePieChart.ImageHeight = 250;
Line 15:
Line 16: PieChart_ascx.PieChartElement myPieChartElement1 = new PieChart_ascx.PieChartElement();
Line 17: PieChart_ascx.PieChartElement myPieChartElement2 = new PieChart_ascx.PieChartElement();
Line 18: PieChart_ascx.PieChartElement myPieChartElement3 = new PieChart_ascx.PieChartElement();
HELP!!!!! I've emailed the original author, but I've been waiting a couple of days now and don't expect to hear from him at this point ...