1
我有這樣的代碼:如何處理字符串撇號DotNet.highcharts
Categories = new[]
{ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul",
"Aug", "Sep", "Oct", "Nov", "Dec" };
這很好地工作在MVC3 DotNet.Highcharts。不過,我試圖從查詢Northwind數據庫喜歡這樣
IEnumerable <string> fname = from u in db.Order_Details.Take(12)
join w in db.Products
on u.ProductID equals w.ProductID
select w.ProductName;
string[] namearr = (string[])fname.ToArray();
.....
.SetXAxis(new XAxis
{
Categories = namearr
....
動態填充與結果的分類現在的一些namarr
有撇號在他們highcharts不能處理這些。
我該如何解決這個問題?