jeffrey Report post Posted June 20, 2013 show my code first: have already using : <script src="../js/FusionCharts.js" type="text/javascript"></script>my body: <div id="chartContainer"> FusionWidgets will load here!</div> <script type="text/javascript"><!-- var myChart = new FusionCharts("../Charts/VLED.swf", "myChartId", "350", "400", "0", "1"); myChart.setXMLUrl("led.xml"); myChart.render("chartContainer"); // --> </script> xml code: <chart lowerLimit="10" upperLimit="1000" lowerLimitDisplay="Bad" upperLimitDisplay="Good" palette="1" numberSuffix="m³" chartRightMargin="20" decimals="0" dataStreamURL="RealTimeData.aspx" refreshInterval="3" > <colorRange> <color minValue="0" maxValue="75" code="FF654F" label="Bad"/> <color minValue="75" maxValue="90" code="F6BD0F" label="Moderate"/> <color minValue="90" maxValue="100" code="8BBA00" label="Good"/> </colorRange> <value>43</value> <styles> <definition> <style type="font" name="myValueFont" bgColor="F1f1f1" borderColor="999999"/> </definition> <application> <apply toObject="Value" styles="myValueFont"/> </application> </styles></chart> RealTimeData.aspx.cs code: protected void Page_Load(object sender, EventArgs e) { //Define variable int randomValue; string dateTimeLabel; //Define limits int lowerLimit = 30; int upperLimit = 35; //Create random object System.Random rand; rand = new System.Random(); //Generate a random value randomValue = (int)rand.Next(lowerLimit, upperLimit); //Get date object DateTime objToday = DateTime.Now; //Create time string in hh:mm:ss format dateTimeLabel = objToday.Hour + ":" + objToday.Minute + ":" + objToday.Second; //Now write it to output stream Response.Write("&value="+randomValue); } the problem is:the program can run in the RealTimeData.aspx file,and also respose.write the formatt code like "&value=34",and every 3 seconds will run in this file again.but the VLED.swf is always show the value=43,do not update .is it my program's mistake?if it is,please Pointed out that to me ,thank you very much!the files location is like the picture showed,in the attachment. Thanks, Jeffrey Share this post Link to post Share on other sites
jeffrey Report post Posted June 20, 2013 anybody help? Share this post Link to post Share on other sites
jeffrey Report post Posted June 20, 2013 thanks god, finally , i sloved the problem by myself,this file's code should be like this:<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RealTimeData.aspx.cs" Inherits="水池测试Web.fusioncharts.data.RealTimeData" %>,do not allow anyother code like <html></html> etc. Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted June 20, 2013 Glad to hear that you have managed of your own to resolve the issue. Share this post Link to post Share on other sites