protected void NoDataInsert_Click(object sender, EventArgs e) { TextBox tbCode = DeptGridView.Controls[0].Controls[0].FindControl("NoDataCode") as TextBox; TextBox tbDescription = DeptGridView.Controls[0].Controls[0].FindControl("NoDataDescription") as TextBox; DeptsBLL deptBll = new DeptsBLL(); deptBll.AddDept(tbCode.Text, tbDescription.Text); DeptGridView.DataBind(); }
protected void InsertNew_Click(object sender, EventArgs e) { TextBox tbCode = DeptGridView.FooterRow.FindControl("InsertCode") as TextBox; TextBox tbDescription = DeptGridView.FooterRow.FindControl("InsertDescription") as TextBox; DeptsBLL deptBll = new DeptsBLL(); deptBll.AddDept(tbCode.Text, tbDescription.Text); DeptGridView.DataBind(); }
public bool UpdateDept(DeptsBLL bll) { return UpdateDept(bll.Id, bll.Code, bll.Description); }
public bool DeleteDept(DeptsBLL bll) { return DeleteDept(bll.Id); }