Пример #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            Dao              dao     = new Dao();
            string           cmd     = ("select * From estimates Where (company_id LIKE '" + lblInfo.Text + "')");
            MySqlDataAdapter reader2 = dao.consultar2(cmd);
            DataTable        dt      = new DataTable();

            reader2.Fill(dt);
            GridView1.DataSource = dt;
            GridView1.DataBind();
        }
Пример #2
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            Dao              dao     = new Dao();
            string           cmd2    = ("select * From costs Where (estimated_id LIKE '" + txtCod.Text + "')");
            MySqlDataAdapter reader3 = dao.consultar2(cmd2);
            DataTable        dt      = new DataTable();

            reader3.Fill(dt);
            GridView2.DataSource = dt;
            GridView2.DataBind();
        }
Пример #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Dao              dao     = new Dao();
            string           cmd     = ("select * From estimates Where (ok LIKE '" + 1 + "')");
            MySqlDataAdapter reader2 = dao.consultar2(cmd);
            DataTable        dt      = new DataTable();

            reader2.Fill(dt);
            GridView1.DataSource = dt;
            GridView1.DataBind();
        }