protected void ButtonUpdateContactInfo_Click(object sender, EventArgs e) { RequestUpdateContactInfo request = new RequestUpdateContactInfo(); request.Username = Session["Username"].ToString(); request.HomeNum = txtHomeNum.Text; request.CellphoneNum = txtCellphoneNum.Text; request.HomeAddress = txtHomeAddress.Text; request.Email = txtEmail.Text; try { DAT.UpdateContactInfo(request); Response.Write("<script language='javascript'>alert('Update Successful!.')</script>"); Response.Redirect("Employee_ViewContactInfo.aspx"); } catch { Response.Write("Update Failed!"); } finally { txtHomeNum.Text = ""; txtCellphoneNum.Text = ""; txtHomeAddress.Text = ""; txtEmail.Text = ""; } }