Beispiel #1
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (!IsPostBack)
            {
                SelectDateRange.rblRange.SelectedValue = "max";
                SelectDateRange.BindValue();
                DataTable dt = DB.GetDataTable("select QuoteCode,QuoteName from stockdata where Exchange='Economic'");
                BindLookup(ddlSymbol1, dt, 0, lDefault1.Text);
                DataRow dr = dt.NewRow();
                dr[0] = "";
                dr[1] = "N/A";
                dt.Rows.InsertAt(dr, 0);
                BindLookup(ddlSymbol2, dt, 0, "");
                BindLookup(ddlSymbol3, dt, 0, "");
            }

            string Scale = rblScale.SelectedItem.Value;
            string Skin  = Config.DefaultSkin;

            ibChart.ImageUrl = "../Chart.aspx?Provider=DB&Code=" +
                               ddlSymbol1.SelectedValue +
                               "&Over=EXTEND.COMPARE(" + ddlSymbol2.SelectedValue + ");EXTEND.COMPARE(" + ddlSymbol3.SelectedValue + ")" +
                               "&Scale=" + Scale +
                               "&Skin=" + Skin +
                               "&Size=700*500" +
                               "&Start=" + SelectDateRange.Start +
                               "&End=" + SelectDateRange.End +
                               "&Cycle=" + SelectDateRange.Cycle +
                               "&Type=1" +
                               "&His=0" +
                               "&X=" + Tools.ToIntDef(Request.Form[ibChart.ID + ".x"], 0) +
                               "&Y=" + Tools.ToIntDef(Request.Form[ibChart.ID + ".y"], 0);
        }