protected void btnDelete_Click(object sender, EventArgs e)
 {
     int PersonID = Convert.ToInt32(txtID.Text);
     int EmailAddressID = Convert.ToInt32(txtEID.Text);
     DataManager.DataAccess da = new DataManager.DataAccess();
     da.DeleteEmailAddress(EmailAddressID);
     //Response.Redirect("FetchPerson.aspx");
     Response.Redirect("EditPerson.aspx?Mode=Edit&PersonID=" + this.txtID.Text);
 }
Esempio n. 2
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            int PersonID       = Convert.ToInt32(txtID.Text);
            int EmailAddressID = Convert.ToInt32(txtEID.Text);

            DataManager.DataAccess da = new DataManager.DataAccess();
            da.DeleteEmailAddress(EmailAddressID);
            //Response.Redirect("FetchPerson.aspx");
            Response.Redirect("EditPerson.aspx?Mode=Edit&PersonID=" + this.txtID.Text);
        }