摘要:
View Code 1 public partial class WebForm1 : System.Web.UI.Page 2 { 3 protected void Page_Load(object sender, EventArgs e) 4 { 5 if (!IsPostBack) 6 { 7 CreateChart(); 8 } 9 }10 11 public DataTable GetTempData()12... 阅读全文
摘要:
2D代码:View Code 1 protected void Page_Load(object sender, EventArgs e) 2 { 3 if (!IsPostBack) 4 { 5 string[] names = new string[] { "A", "B", "C" }; 6 int[] data = new int[] { 100, 400, 100 }; 7 int[] data1 = new int[] ... 阅读全文
摘要:
View Code 1 public partial class Chartdb3 : System.Web.UI.Page 2 { 3 protected void Page_Load(object sender, EventArgs e) 4 { 5 if (!IsPostBack) 6 { 7 CreateTempChart(); 8 } 9 }10 public DataTable GetTempData()1... 阅读全文
摘要:
View Code protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { CreateTempChart(); } } public void CreateTempChart() { SqlConnection con = new SqlConnection("Data Source=.;Initial Catalog=DEMO;... 阅读全文
摘要:
View Code protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { CreateChartImage(); } } public DataTable GetTempData() { SqlConnection con = new SqlConnection("Data Source=.;Initial Catalog=DEM... 阅读全文
摘要:
View Code 1 protected void Page_Load(object sender, EventArgs e) 2 { 3 if (!IsPostBack) 4 { 5 int[] date = new int[] { 20, 40, 50, 80, 30, 10, 60 }; 6 int[] test = new int[] { 10, 80, 70, 40, 20, 50, 90 }; 7 Chart1.Wid... 阅读全文