Exemple #1
0
 protected void Cargar()
 {
     try
     {
         BFTIPOSECCION objBFTS = new BFTIPOSECCION();
         objWEB.LlenaGrilla(ref grdResultados, objBFTS.GetTIPOSECCIONAll().Cast <DomainObject>().ToList(), 20);
     }
     catch (Exception ex)
     {
         Log log = new Log();
         log.EscribirLog(ex);
         litCatchError.Visible = true;
         ScriptManager.RegisterStartupScript(this, this.GetType(), "modal", "Menu('0');", true);
     }
 }
 protected void grdSecciones_RowDataBound(object sender, GridViewRowEventArgs e)
 {
     try
     {
         if (e.Row.RowType == DataControlRowType.DataRow)
         {
             DropDownList  ddl   = ((DropDownList)e.Row.FindControl("ddlTipoSeccion"));
             BFTIPOSECCION objTS = new BFTIPOSECCION();
             objWEB.LlenaDDL(ref ddl, objTS.GetTIPOSECCIONAll().Cast <DomainObject>().ToList(), "CODTIPOSECCION", "NOMBRETIPOSECCION");
         }
     }
     catch (Exception ex)
     {
         Log log = new Log();
         log.EscribirLog(ex);
         litCatchError.Visible = true;
         ScriptManager.RegisterStartupScript(this, this.GetType(), "modal", "Menu('0');", true);
     }
 }