protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (Request.QueryString["idResultado"] != null) { int idresultado = Convert.ToInt32(Request.QueryString["idResultado"]); JsGantt Gantt = new JsGantt(); Gantt.genera_gantt("GanttChartDIV", idresultado, Page); titulo_diagrama.InnerHtml = "Cronograma Resultado"; } else if (Session["idproyecto"] != null) { int idproyecto = Convert.ToInt32(Session["idproyecto"]); JsGantt Gantt = new JsGantt(); Gantt.genera_gantt("GanttChartDIV", idproyecto, Page, true); } } }
protected void getCronograma() { try { int idproyecto = Convert.ToInt32(Session["idproyecto"]); JsGantt Gantt = new JsGantt(); Gantt.genera_gantt("GanttChartDIV", idproyecto, Page, true); } catch (Exception) { /*TODO: JCMM: Controlador Exception*/ } }