public void nuevo() { try { String bd = Session["BD"].ToString(); var registroNUEVO = Controlasql.ClistaNUEVONUMEROACTA(bd); if (registroNUEVO.Tables[0].Rows.Count > 0) { DataTable dt = registroNUEVO.Tables[0]; txtidacta.Text = ""; foreach (DataRow row in dt.Rows) { txtidacta.Text = (Convert.ToString(row["id"])); } } } catch (Exception) { } }