protected void Page_Load(object sender, EventArgs e) { name = Request.QueryString["PSJUID"]; if (!IsPostBack) { if (Session["PSJUID"] != null) { BAJobSeeker baMem = new BAJobSeeker(); BEMemDetails beMem = new BEMemDetails(); beMem.email = Session["PSJUID"].ToString(); DataSet ds = new DataSet(); ds = baMem.getMemCompleteDetails(beMem); dlUserProfile.DataSource = ds.Tables[0]; dlUserProfile.DataBind(); } } }
protected void Page_Load(object sender, EventArgs e) { BEMemDetails beMem = new BEMemDetails(); BAJobSeeker baMem = new BAJobSeeker(); beMem.email = Session["PSJUID"].ToString(); ds = baMem.getMemCompleteDetails(beMem); if (!IsPostBack) { BindCategory(); if (ds.Tables[0].Rows.Count != 0) { txtFName.Focus(); lblSuccess.Visible = false; txtFName.Text = ds.Tables[0].Rows[0]["firstname"].ToString(); txtMName.Text = ds.Tables[0].Rows[0]["middlename"].ToString(); txtLName.Text = ds.Tables[0].Rows[0]["lastname"].ToString(); txtAddr1.Text = ds.Tables[0].Rows[0]["addressline1"].ToString(); txtAddr2.Text = ds.Tables[0].Rows[0]["addressline2"].ToString(); txtCity.Text = ds.Tables[0].Rows[0]["city"].ToString(); ddlState.SelectedValue = ds.Tables[0].Rows[0]["state"].ToString(); txtZip.Text = ds.Tables[0].Rows[0]["zip"].ToString(); txtPhone.Text = ds.Tables[0].Rows[0]["phone"].ToString(); txtMobile.Text = ds.Tables[0].Rows[0]["mobile"].ToString(); txtEmail.Text = ds.Tables[0].Rows[0]["email"].ToString(); if (ds.Tables[0].Rows[0]["LegallyUs"].ToString().Trim() == "Yes") { rbLegallyUs.SelectedValue = "Yes"; } else { rbLegallyUs.SelectedValue = "No"; } txtMRecentEmployer.Text = ds.Tables[0].Rows[0]["RecentEmployer"].ToString(); txtJobTitle.Text = ds.Tables[0].Rows[0]["JobTitle"].ToString(); ddlFieldExpertise.SelectedValue = ds.Tables[0].Rows[0]["Category"].ToString(); ddlYearsExp.SelectedValue = ds.Tables[0].Rows[0]["Exp"].ToString().Split('.')[0]; string x = ds.Tables[0].Rows[0]["Exp"].ToString(); string y = string.Empty; if (!string.IsNullOrEmpty(x)) { y = x.Split('.')[1]; } ddlMonthsExp.SelectedValue = y.Trim(); ddlHEdu.SelectedValue = ds.Tables[0].Rows[0]["edu"].ToString(); string[] substring = ds.Tables[0].Rows[0]["PreferredLoc"].ToString().Split(','); foreach (string str in substring) { for (int intItem = 0; intItem <= lbPreLoc.Items.Count - 1; intItem++) { if (lbPreLoc.Items[intItem].Value == str) { lbPreLoc.Items[intItem].Selected = true; } } } } else { Response.Redirect("UserHome.aspx"); } } }