protected void Page_Load(object sender, EventArgs e) { string user_name = Session["USER_NAME"] as string; //string user_name = "stefan21"; objDataHandling.user_name = user_name; if (user_name == null || user_name == "") { Response.Redirect("frmHome.aspx", false); } else { lblUser.Text = Session["USER_FULL_NAME"] as string; //lbl_hi_user.Text = user_name; } if (!Page.IsPostBack) { string job_id = Request.QueryString["job_id"]; if (job_id != null) { //ArrayList controllersID = new ArrayList(); //getControllersID(controllersID); ArrayList controllers_data = objDataHandling.getData(job_id); setControllersData(controllers_data); btnSave.Text = "Update Data"; btnSaveAs.Visible = true; } } }