protected void btnsubmit_Click(object sender, ImageClickEventArgs e) { try { BELogin belogin = new BELogin(); BAJobSeeker balogin = new BAJobSeeker(); belogin.email = txtEmail.Text; belogin.password = EncryptPassword_Client(txtPassword.Text); string ReturnMsg = balogin.getLogin(belogin); if (ReturnMsg == "Invalid") { lblMsg.Text = "Invalid Credentials!"; } else if (ReturnMsg == "Inactive") { lblMsg.Text = "Your account is not activated. Please activate your acount by clicking on the link sent to your email account and then try to login!"; } else { Session["PSJUID"] = txtEmail.Text; Response.Redirect("~/JobSeeker/UserHome.aspx", false); } } catch (Exception ex) { lblMsg.Text = ex.Message; } }
protected void btnUpload_Click(object sender, EventArgs e) { BAJobSeeker BAreg = new BAJobSeeker(); BEMemDetails beMem = new BEMemDetails(); BEUpdateResume beresm = new BEUpdateResume(); if (Session["PSJUID"].ToString() != "" || Session["PSJUID"].ToString() != null) { name = Session["PSJUID"].ToString(); beMem.email = name; ds = BAreg.getMemDetails(beMem); } if (uploadFile.HasFile) { if (uploadFile.PostedFile.ContentLength <= 1024000) { if (checkFileType(uploadFile.FileName)) { string ext = Path.GetExtension(uploadFile.FileName).ToLower(); uploadFile.SaveAs(ConfigurationManager.AppSettings["Resumes"].ToString() + ds.Tables[0].Rows[0]["id"] + ext); beresm.filename = ext; beresm.email = name; string ReturnMsg = BAreg.Updateresume(beresm); if (ReturnMsg == "Success") { lblMsg.Text = "Resume successfully updated."; lblMsg.Visible = true; } else { lblMsg.Text = "Error in updating the resume"; lblMsg.Visible = true; } } else { lblMsg.Text = "Please upload your resume in .doc or .docx format only."; lblMsg.Visible = true; } } else { lblMsg.Text = "File size exceeded the maximum size limit. Please upload file having size below 1 megabyte."; lblMsg.Visible = true; } } else { lblMsg.Text = "Please add the file to upload."; lblMsg.Visible = true; } }
protected void Page_Load(object sender, EventArgs e) { try { BE_JsAppliedJobs beactivate = new BE_JsAppliedJobs(); beactivate.email = Request.QueryString["id"].ToString(); beactivate.JId = Request.QueryString["id1"].ToString(); BAJobSeeker baactivate = new BAJobSeeker(); baactivate.ActivateJobSeeker(beactivate); } catch (Exception exe) { lblConfirmation.Text = "There is a problem in activating your account. Please<br /><a href=\"JobSeekerLogin.aspx\">click here</a> to register with ploutuS LLC."; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblResume.Visible = false; if (Session["PSJUID"].ToString() != "") { BEJobSeeker bemem = new BEJobSeeker(); BAJobSeeker bamem = new BAJobSeeker(); bemem.email = Session["PSJUID"].ToString(); ds = new DataSet(); ds = bamem.GetMemActivity(bemem); ViewState["filename"] = ds.Tables[0].Rows[0]["filename"].ToString(); string username = ds.Tables[0].Rows[0]["username"].ToString(); Session["username"] = ds.Tables[0].Rows[0]["username"].ToString(); ViewState["username"] = ds.Tables[0].Rows[0]["username"].ToString(); lblUsername.Text = ds.Tables[0].Rows[0]["firstname"].ToString(); lblname.Text = ds.Tables[0].Rows[0]["firstname"].ToString(); Session["LoginTime"] = ds.Tables[2].Rows[0]["LoginTime"].ToString(); lblLastLoginTime.Text = ds.Tables[2].Rows[0]["LoginTime"].ToString(); lblLogintime.Text = ds.Tables[1].Rows[0]["IntialLogin"].ToString(); lblact.Text = ds.Tables[0].Rows[0]["AccountDt"].ToString(); #region JobAlert beJobAlert.jobSeekerID = Session["PSJUID"].ToString(); beJobAlert.type = 0; dsjob = new DataSet(); dsjob = bajob.GetJobAlerts(beJobAlert); if (dsjob.Tables[0].Rows.Count == 0) { dlJobAlerts.DataSource = null; dlJobAlerts.DataBind(); hpkjobalert.Visible = false; } else { dlJobAlerts.DataSource = dsjob; dlJobAlerts.DataBind(); } #endregion } else { Response.Redirect("JobSeekerLogin.aspx", false); } } }
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(); } } }
private void BindCategory() { DataSet ds = new DataSet(); BAJobSeeker bacat = new BAJobSeeker(); ds = bacat.GetCatogories(); ddlFieldExpertise.DataSource = ds.Tables[0]; ddlFieldExpertise.DataTextField = "CategoryName"; ddlFieldExpertise.DataValueField = "CategoryName"; ddlFieldExpertise.DataBind(); ddlFieldExpertise.Items.Insert(0, new ListItem("Select", "Select")); DataSet ds1 = new DataSet(); ds1 = bacat.GetPreferedLoactions(); lbPreLoc.DataSource = ds1.Tables[0]; lbPreLoc.DataTextField = "preloc"; lbPreLoc.DataValueField = "id"; lbPreLoc.DataBind(); lbPreLoc.Items.Insert(0, new ListItem("Select", "Select")); }
protected void btnlogin_Click(object sender, EventArgs e) { string EncryptedPwd = EncryptPassword_Client(Session.SessionID.ToString()); DataSet ds = new DataSet(); BEMemDetails beMem = new BEMemDetails(); BAJobSeeker baMem = new BAJobSeeker(); beMem.email = TextBox2.Text; beMem.password = EncryptedPwd; ds = baMem.getMemDetails(beMem); if (ds.Tables[0].Rows.Count != 0) { string result = baMem.ResetPswJobSeeker(beMem); if (result == "success") { messageconfirm = SendMail(); } else { lblFail.Text = "Your account is not verified. Please activate your account by clicking on the activation link sent to your email."; } } if (messageconfirm == true) { pnlForgotpass.Visible = false; pnlMsg.Visible = true; lblSuccess.Visible = true; lblFail.Visible = false; } else { pnlForgotpass.Visible = true; pnlMsg.Visible = true; lblSuccess.Visible = false; lblFail.Visible = true; } }
protected void btnUpdate_Click(object sender, EventArgs e) { string selectedItem = string.Empty; if (lbPreLoc.Items.Count > 0) { for (int i = 0; i < lbPreLoc.Items.Count; i++) { if (lbPreLoc.Items[i].Selected) { selectedItem += lbPreLoc.Items[i].Value + ','; } } } selectedItem = selectedItem.Remove(selectedItem.Length - 1); BEJobSeeker beDetails = new BEJobSeeker(); BEMemDetails beMem = new BEMemDetails(); BAJobSeeker baUpdate = new BAJobSeeker(); beDetails.firstName = txtFName.Text; beDetails.lastName = txtLName.Text; beDetails.middleName = txtMName.Text; beDetails.address1 = txtAddr1.Text; beDetails.address2 = txtAddr2.Text; beDetails.city = txtCity.Text; beDetails.state = ddlState.SelectedValue; beDetails.zip = txtZip.Text; beDetails.phone = txtPhone.Text; beDetails.mobile = txtMobile.Text; beDetails.email = txtEmail.Text; beDetails.legallyUs = rbLegallyUs.SelectedValue; beDetails.mRecentEmp = txtMRecentEmployer.Text; beDetails.jobTitle = txtJobTitle.Text; beDetails.HighEdu = ddlHEdu.SelectedValue; beDetails.fieldExpertise = ddlFieldExpertise.SelectedValue; beDetails.experience = ddlYearsExp.SelectedValue + "." + ddlMonthsExp.SelectedValue; beDetails.prefLoc = selectedItem; beMem.email = Session["PSJUID"].ToString(); try { baUpdate.updateMemReg(beDetails, beMem); btnUpdate.Visible = false; txtFName.Text = ""; txtMName.Text = ""; txtLName.Text = ""; txtAddr1.Text = ""; txtAddr2.Text = ""; txtCity.Text = ""; ddlState.SelectedIndex = 0; txtZip.Text = ""; txtPhone.Text = ""; txtMobile.Text = ""; txtEmail.Text = ""; rbLegallyUs.SelectedValue = ""; txtMRecentEmployer.Text = ""; txtJobTitle.Text = ""; ddlFieldExpertise.SelectedIndex = 0; ddlMonthsExp.SelectedValue = "-1"; ddlYearsExp.SelectedValue = "-1"; lbPreLoc.ClearSelection(); ddlHEdu.SelectedValue = "-1"; Response.Redirect("ViewProfile.aspx"); } catch (Exception) { } finally { } }
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"); } } }