Exemplo n.º 1
0
        private void btnQuery_Click(object sender, System.EventArgs e)
        {
            Hashtable htapp   = (Hashtable)Application["appconf"];
            string    strcons = (string)htapp["cons"];

            msb1 = new MaterialSBusi(strcons);

            DataTable dt = msb1.GetMaterialsBySelect(this.txtQueryMaterialCode.Text.Trim(), this.txtQueryMaterialName.Text.Trim());

            this.DataGrid1.DataSource = dt;
            this.DataGrid1.DataBind();
        }