protected override void initialize() { if (!IsPostBack) { String fileLocation = HttpContext.Current.Server.MapPath("~") + System.Configuration.ConfigurationManager.AppSettings["rutaTMP"].ToString(); CargaController.deleteDataFiles(fileLocation); } //rblTipoCarga.Items[0].Selected = true; }
public static String ejecutarArchivoXLS(String Tipo) { String fileLocation = HttpContext.Current.Server.MapPath("~") + System.Configuration.ConfigurationManager.AppSettings["rutaTMP"].ToString(); List <FileCargaBean> lst; //if (!Tipo.ToUpper().Equals("KML")) //{ String XLSLocation = HttpContext.Current.Server.MapPath("~") + System.Configuration.ConfigurationManager.AppSettings["rutaDTS"].ToString(); lst = CargaController.ejecutarArchivoXLS(fileLocation, XLSLocation, Tipo); //} //else // lst = KMLController.ejecutarArchivoKML(fileLocation); return(tableResult(lst)); }