Exemple #1
0
        protected void btnTim_Click(object sender, EventArgs e)
        {
            if (txtMac.Text.Length > 3)
            {
                NW_Traffic tf = new NW_Traffic();
                tf.MacAddress = txtMac.Text;
                tf.Month      = DateTime.Now.Month.ToString();
                tf.Year       = DateTime.Now.Year.ToString();
                DataTable dt = tf.NW_Trafic_Getlike();
                GridItem.DataSource = dt;
                GridItem.DataBind();
                ChartItem.DataSource = dt;
                ChartItem.Series["Series1"].XValueMember  = "DateTime";
                ChartItem.Series["Series1"].YValueMembers = "DS";
                ChartItem.Series["Series2"].XValueMember  = "DateTime";
                ChartItem.Series["Series2"].YValueMembers = "US";
                ChartItem.DataBind();

                //_Ip = dt.Rows[0]["IpAddress"].ToString();
                //if (dt.Rows.Count > 0)
                //    btnReset.Visible = true;
                //else
                //    btnReset.Visible = false;
            }
        }
Exemple #2
0
        protected void btnTim_Click(object sender, EventArgs e)
        {
            if (txtMac.Text.Length > 3)
            {
                NW_Traffic tf = new NW_Traffic();
                tf.MacAddress = txtMac.Text;
                tf.Month = DateTime.Now.Month.ToString();
                tf.Year = DateTime.Now.Year.ToString();
                DataTable dt = tf.NW_Trafic_Getlike();
                GridItem.DataSource = dt;
                GridItem.DataBind();
                ChartItem.DataSource = dt;
                ChartItem.Series["Series1"].XValueMember = "DateTime";
                ChartItem.Series["Series1"].YValueMembers = "DS";
                ChartItem.Series["Series2"].XValueMember = "DateTime";
                ChartItem.Series["Series2"].YValueMembers = "US";
                ChartItem.DataBind();

                //_Ip = dt.Rows[0]["IpAddress"].ToString();
                //if (dt.Rows.Count > 0)
                //    btnReset.Visible = true;
                //else
                //    btnReset.Visible = false;
            }
        }