コード例 #1
0
        protected void GetAgents()
        {
            List <Agentstbl> lstAgn = new List <Agentstbl>();

            at.IsActive = 1;

            lstAgn = objagBL.GetAgentByIsActive(at).ToList();
            if (lstAgn.Count() >= 1)
            {
                gdvAgents.DataSource = lstAgn;
                gdvAgents.DataBind();
            }
            else
            {
                DataTable dt = new DataTable();
                gdvAgents.DataSource = dt;
                gdvAgents.DataBind();
            }
        }