protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Staff manager = (Staff)Session["LoginStaff"]; string deptID = manager.Dept_ID; Staff Rep = UCDC.GetRepByDeptID(deptID); TBStaffID.Text = Rep.Staff_ID; LBStaffName.Text = Rep.Staff_Name; foreach (string desc in UCDC.GetAllCpDesc()) { DDLCP.Items.Add(desc); } DDLCP.SelectedValue = UCDC.getCPDesByDptID(deptID); } }