protected void Button3_Click(object sender, EventArgs e) { string emailAddress = TextBox4.Text; int empId = Convert.ToInt32(Session["empId"].ToString()); Common_ChangeEmailAddressBL objChangeEmailAddressBL = new Common_ChangeEmailAddressBL(); objChangeEmailAddressBL.Common_ChangeEmailAddress(empId, emailAddress); Panel2.Visible = false; LinkButton4.Visible = true; if(LinkButton4.Text == "Add Email Address") Label22.Text = "Email Address Added"; else if (LinkButton4.Text == "Update Email Address") Label22.Text = "Email Address Updated"; Label22.BackColor = System.Drawing.Color.Yellow; getAccountInfo(); }
protected void Button3_Click(object sender, EventArgs e) { string emailAddress = TextBox4.Text; int empId = Convert.ToInt32(Session["empId"].ToString()); Common_ChangeEmailAddressBL objChangeEmailAddressBL = new Common_ChangeEmailAddressBL(); objChangeEmailAddressBL.Common_ChangeEmailAddress(empId, emailAddress); Panel2.Visible = false; LinkButton4.Visible = true; if (LinkButton4.Text == "Add Email Address") { Label22.Text = "Email Address Added"; } else if (LinkButton4.Text == "Update Email Address") { Label22.Text = "Email Address Updated"; } Label22.BackColor = System.Drawing.Color.Yellow; getAccountInfo(); }