How do I display a Json random number in a real-time Flot chart?
问题 I made in my C# page a random number which is stored in a json object: if (method == "rnd") { //Random number this.Page.Response.ContentType = "application/json2"; Random rnd = new Random(); int nr = rnd.Next(1, 100); // creates a number between 1 and 99 String str1 = nr.ToString(); var json2 = new JavaScriptSerializer().Serialize(str1); this.Page.Response.Write(json2); } and then I display it on my ASP page: function test2() { $.ajax({ type: 'GET', url: ('ajax.aspx?meth=') + "rnd",/