The Problem: You attempt to use the super-cool new charting features in asp.net mvc 3, and all you get is compilation errors
The Cause: You are using the old school System.Web.UI.DataVisualization.Charting.Chart namespace
The Solution: Delete
using System.Web.UI.DataVisualization.Charting.Chart
and instead insert
using System.Web.Helpers;
If you are using the chart code in an actual razor page (and not in the controller), just insert
@using RazorHelpers.Helpers
into the top of the page
This post originally appeared on the Stronico blog – with the absorption of Stronico into Digital Tool Factory this post has been moved to the Digital Tool Factory blog
|
Written By Steve French |
Very nice post, Thanks for this publishing. Really help me a lot.