コード例 #1
0
ファイル: DeleteEmployee.aspx.cs プロジェクト: Deepthi05/EMS
 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();
 }
コード例 #2
0
ファイル: ViewEmployee.aspx.cs プロジェクト: Deepthi05/EMS
        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;
            }
        }