protected void btnDelete_Click(object sender, EventArgs e)
 {
     int CompanyID = Convert.ToInt32(txtID.Text);
     int AddressID = Convert.ToInt32(txtAID.Text);
     DataManager.DataAccess da = new DataManager.DataAccess();
     da.DeleteCompanyAddress(CompanyID, AddressID);
     //Response.Redirect("FetchPerson.aspx");
     Response.Redirect("EditCompany.aspx?Mode=Edit&CompanyID=" + this.txtID.Text);
 }
Пример #2
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            int CompanyID = Convert.ToInt32(txtID.Text);
            int AddressID = Convert.ToInt32(txtAID.Text);

            DataManager.DataAccess da = new DataManager.DataAccess();
            da.DeleteCompanyAddress(CompanyID, AddressID);
            //Response.Redirect("FetchPerson.aspx");
            Response.Redirect("EditCompany.aspx?Mode=Edit&CompanyID=" + this.txtID.Text);
        }