Exemple #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            EmpBusiness     eq    = new EmpBusiness();
            List <Employee> eList = new List <Employee>();

            eList = eq.getEmp(TextBox14.Text);
            GridViewTokenCodeDetails.DataSource = eList;
            GridViewTokenCodeDetails.DataBind();
        }
Exemple #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            EmpBusiness     eq    = new EmpBusiness();
            List <Employee> eList = new List <Employee>();

            eList = eq.getEmp(TextBox1.Text);
            GridViewTokenCodeDetails.DataSource = eList;
            GridViewTokenCodeDetails.DataBind();
            Button2.Visible = true;
            if (eList.Count == 0)
            {
                Label17.Text = "Employee not found";

                Label17.Visible = true;
                Button2.Visible = false;
            }
        }