protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { HumanResourcesDepartment.Menu menu = new HumanResourcesDepartment.Menu(); this.company = menu.LoadObject("Google", Server.MapPath(@"~\App_Data")); ArrayList positions = new ArrayList(); positions.Add("Product owner"); positions.Add("Developer"); positions.Add("QA"); positions.Add("Project manager"); positions.Add("Business analyst"); Position.DataSource = positions; Position.DataBind(); Employeer.DataSource = this.ReturnEmployerList(this.company); Employeer.DataValueField = "Key"; Employeer.DataTextField = "Value"; Employeer.DataBind(); Subdivision.DataSource = this.ReturnSubdivisions(this.company); Subdivision.DataBind(); if (!string.IsNullOrEmpty(Request.QueryString["id"])) { this.id = int.Parse(Request.QueryString["id"]); this.SetDataOnForm(id); this.ChangeButtons(); } } else { HumanResourcesDepartment.Menu menu = new HumanResourcesDepartment.Menu(); this.company = menu.LoadObject("Google", Server.MapPath(@"~\App_Data")); } }