Exemplo n.º 1
0
        protected void btnQuery_Click(object sender, EventArgs e)
        {
            string macongty = Session["congty"].ToString();

            if (DropBoPhan.SelectedValue.ToString().Trim() == "All")
            {
                GridView1.DataSource = dal.QryUser(macongty);
                GridView1.DataBind();
            }
            else
            {
                string mabophan = DropBoPhan.SelectedValue.ToString();
                GridView1.DataSource = dal.QryUserByDepart(macongty, mabophan);
                GridView1.DataBind();
            }
        }