Hi, everyone. I have problem with fusioncharts evaluation in the ASP .NET.
This is my page.
public partial class Default : Page
{
public String Url
{
get { return HttpUtility.UrlEncode("Data.aspx?FCTime=75757"); }
}
}
.Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="test.Default".
.body.
.form id="form1" runat="server".
.div.
.object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="350" height="350" name="SurveyChart".
.param name="allowScriptAccess" value="always".
.param name="movie" value="http://localhost/sites/test/_layouts/IEFS/FusionCharts/MSCombi3D.swf".
.param name="FlashVars" value="&chartWidth=350&chartHeight=350&debugMode=1&dataURL=<%= Url %>".
.param name="quality" value="high".
.embed src="http://localhost/sites/test/_layouts/IEFS/FusionCharts/MSCombi3D.swf" FlashVars="&chartWidth=350&chartHeight=350&debugMode=1&dataURL=<%= Url %>" quality="high" width="350" height="350" name="ChartName" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer".
.object.
.div.
.form.
.body.
My Data page is
public partial class Data : Page
{
protected override void Render(HtmlTextWriter writer)
{
Response.ContentType = "text/xml";
Response.Write("");
}
}
And I have error:
[p]"NFO: XML Data provided using dataURL method.
dataURL provided: Data.aspx?FCTime=75757
dataURL invoked: Data.aspx?FCTime=75757&FCTime=76
ERROR: An error occurred while loading data. Please check your dataURL, by clicking on the "dataURL invoked" link above, to see if it's returing valid XML data. Common causes for error are:
No URL Encoding provided for querystrings in dataURL. If your dataURL contains querystrings as parameters, you'll need to URL Encode the same. e.g., Data.asp?id=101&subId=242 should be Data%2Easp%3Fid%3D101%26subId%3D242
Different sub-domain of chart .swf and dataURL. Both need to be same owing to sandbox security.
Network error"[/p]
What can I do? I really doesn't know, what's the problem. Please help me. Thanks.