protected void btnDelete_Click(object sender, EventArgs e)
        {
            DataPortal.EmailAddressesData ead = new DataPortal.EmailAddressesData();

            DataPortal.PersonAddressData pad = new DataPortal.PersonAddressData();

            //DataSet ds = new DataSet();
            int AddressID = Convert.ToInt32(txtAID.Text);

            //pad.Delete(AddressID);
            int affectedRecords = pad.Delete(AddressID);

            //int x = Convert.ToInt32(txtID.Text);
            if (affectedRecords > 0)
            {
                Response.Redirect("WebForm1.aspx?PersonID=" + txtID.Text);
            }
        }
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            DataPortal.EmailAddressesData ead = new DataPortal.EmailAddressesData();

            DataPortal.PersonAddressData pad = new DataPortal.PersonAddressData();

            //DataSet ds = new DataSet();
            int AddressID = Convert.ToInt32(txtAID.Text);

            //pad.Delete(AddressID);
            int affectedRecords = pad.Delete(AddressID);

            //int x = Convert.ToInt32(txtID.Text);
            if (affectedRecords > 0)
            {
                Response.Redirect("WebForm1.aspx?PersonID=" + txtID.Text);
            }
        }