protected void txt_folio_TextChanged(object sender, EventArgs e) { tbl_actionPlanTableAdapter acPlan = new tbl_actionPlanTableAdapter(); int actPlanID = Convert.ToInt32(acPlan.getActIDByFolio(Convert.ToInt32(txt_folio.Text))); txt_folio0.Text = actPlanID.ToString(); acPlan.Dispose(); }
private int getPlanAccion(int incidID) { tbl_actionPlanTableAdapter acPlan = new tbl_actionPlanTableAdapter(); int actPlanID = Convert.ToInt32(acPlan.getActIDByFolio(incidID)); txt_folio0.Text = actPlanID.ToString(); acPlan.Dispose(); return(actPlanID); }