protected void Page_Load(object sender, EventArgs e) { if (Session["Authenticated"] == null) { Response.Redirect("default.aspx"); } else if (!Page.IsPostBack) { SkillGroupDropdown.DataSource = db.GetAllSkillGroups(); SkillGroupDropdown.DataTextField = "SkillGroupName"; SkillGroupDropdown.DataValueField = "SkillGroupID"; SkillGroupDropdown.DataBind(); genderDropdown.DataSource = db.GetAllGenders(); genderDropdown.DataTextField = "GenderName"; genderDropdown.DataValueField = "GenderID"; genderDropdown.DataBind(); ethnicityDropdown.DataSource = db.GetAllEthnicities(); ethnicityDropdown.DataTextField = "EthnicityName"; ethnicityDropdown.DataValueField = "EthnicityID"; ethnicityDropdown.DataBind(); /*Security Session Variable*/ Session["Authenticated"] = true; txtFirstName.Text = (string)Session["First_Name"]; txtLastName.Text = (string)Session["Last_Name"]; txtEmail.Text = (string)Session["Email"]; } }