protected void btnDelete_Click(object sender, EventArgs e)
 {
     int CompanyID = Convert.ToInt32(txtID.Text);
     String Name = txtName.Text;
     String Notes = txtNotes.Text;
     DataManager.DataAccess da = new DataManager.DataAccess();
     da.DeleteCompany(CompanyID);
     Response.Redirect("FetchCompany.aspx");
 }
Esempio n. 2
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            int    CompanyID = Convert.ToInt32(txtID.Text);
            String Name      = txtName.Text;
            String Notes     = txtNotes.Text;

            DataManager.DataAccess da = new DataManager.DataAccess();
            da.DeleteCompany(CompanyID);
            Response.Redirect("FetchCompany.aspx");
        }