protected void ddlDevices_SelectedIndexChanged(object sender, EventArgs e) { DbStuff dsf = new DbStuff(); int.TryParse(ddlDevices.SelectedValue, out int deviceID); var sensors = dsf.GetDeviceSensors(deviceID); }
protected void Page_Load(object sender, EventArgs e) { DbStuff dsf = new DbStuff(); var device = dsf.GetDevices(); ddlDevices.DataSource = device; ddlDevices.DataValueField = "DeviceId"; ddlDevices.DataTextField = "DeviceAllias"; ddlDevices.DataBind(); WebChartControl1.DataSource = FinancialData.GetUSDJPYData(); WebChartControl1.DataBind(); }