public List <Agent> BindGrid(string city)
        {
            List <Agent> lst = new List <Agent>();

            lst = agentBal.GridbindEmail(city);
            grid_search.DataSource = lst;
            grid_search.DataBind();
            return(lst);
        }
Exemple #2
0
        public List <Agent> BindGrid(string city)
        {
            List <Agent> lst = new List <Agent>();

            lst = agentBal.GridbindEmail(city);
            if (lst.Count == 0)
            {
                Response.Write("<script LANGUAGE='JavaScript' >alert('No Record Found')</script>");
            }
            else
            {
                btn_download.Visible = true;
            }
            grid_search.DataSource = lst;
            grid_search.DataBind();
            return(lst);
        }