Skip to content

Instantly share code, notes, and snippets.

View davidgaraydh's full-sized avatar

David Garay Rodriguez davidgaraydh

View GitHub Profile
Requiere el siguiente dll
https://mega.nz/#!AAk2SCSS!01sAYf7JCtQeMRKoQOFAiWrvdELQ3_BXAzfMk8bHhwY
<div class="col-lg-3" ><asp:LinkButton runat="server"
ID="lnkReportAllPdfs" OnClick="lnkReportAllPdfs_OnClick">
<img class="btnUploadExcel" title="Hacer un reporte de todos los datos disponibles."
src="Multimedia/img/All.png" style="width: 100px; height: 100px;cursor: pointer"/>
</asp:LinkButton> </div>
Requiere el siguiente dll
https://mega.nz/#!gBlAxAwT!b8CTwuxcGvQQ7YZ3eB-icMVCyuyhWGJ31G3PWdH6WVs
<div class="col-lg-3" ><asp:LinkButton runat="server" ID="lnkReportAll"
OnClick="lnkReportAll_OnClick"><asp:ImageButton ID="ImgAll" class="btnUploadExcel"
title="Hacer un reporte de todos los datos disponibles." src="Multimedia/img/All.png"
style="width: 100px; height: 100px; cursor: pointer; z-index: 1000;" runat="server" CausesValidation="false"/>
</asp:LinkButton> </div>
---------------Estructura de la tabla-------------
<table id="example" class="table table-striped table-bordered " style="width: 100%;" >
<thead>
<tr>
<th class="text-center"><asp:Label runat="server" Text="<%$ Resources:GlobalSite, Usuario %>" ></asp:Label></th>
<th class="text-center"><asp:Label runat="server" Text="<%$ Resources:GlobalSite, Descripcion %>" ></asp:Label></th>
<th class="text-center"><asp:Label runat="server" Text="<%$ Resources:GlobalSite, Servidor %>" ></asp:Label></th>
<th class="text-center"><asp:Label runat="server" Text="<%$ Resources:GlobalSite, Grupos %>" ></asp:Label></th>
<th class="text-center"><asp:Label runat="server" Text="<%$ Resources:GlobalSite, Estatus %>" ></asp:Label></th>
<th class="text-center"><asp:Label runat="server" Text="<%$ Resources:GlobalSite, DescribirUso %>" ></asp:Label></th>
@davidgaraydh
davidgaraydh / UploadExcel.aspx
Last active October 6, 2018 21:30
Forma básica de carga de excel (MVC,Entity FrameWork,asp.net)
Requiere el siguiente dll
https://mega.nz/#!gBlAxAwT!b8CTwuxcGvQQ7YZ3eB-icMVCyuyhWGJ31G3PWdH6WVs
------------Boton para cargar logicamente el excel-----------------------
<label class="btn btn-primary btnHeaderActive btnUploadExcel" title="Aqui carga temporalmente el excel." >
Carga de Excel<asp:FileUpload runat="server" style="display: none;" ID="inputUpload" />
<i class="fa fa-cloud-upload marIcon" aria-hidden="true"></i></label>
------------Etiqueta para eliminar la carga logica-----------------------
@davidgaraydh
davidgaraydh / JBox.aspx
Last active October 6, 2018 23:48
Es la forma en la que se usa el plugin de JBox
-----------------Referencias necesarias---------------------
https://mega.nz/#!QItVwAjb!AW3r7dF7MCCqtDQsO-G3FXXHsC_yaytoHW_CEnpwCfU
------Forma en la que se aplica en el aspx------
<asp:LinkButton ID="ModalExcel" runat="server" class="btn btn-primary btnHeaderActive btnReportsExcel"
title="Con este boton usted podra descargar los reportes con los parametros que guste."
href="#" role="button" Text="<%$ Resources:GlobalSite, ReportesExcel %>" ></asp:LinkButton>
@davidgaraydh
davidgaraydh / Datatable.aspx
Last active October 6, 2018 21:00
Código básico para un datatable basico
---------Estructura de la Tabla-------------
<table id="example" class="table table-striped table-bordered " style="width: 100%;" >
<thead>
<tr>
<th class="text-center"><asp:Label runat="server" Text="<%$ Resources:GlobalSite, Usuario %>" ></asp:Label></th>
<th class="text-center"><asp:Label runat="server" Text="<%$ Resources:GlobalSite, Descripcion %>" ></asp:Label></th>
<th class="text-center"><asp:Label runat="server" Text="<%$ Resources:GlobalSite, Servidor %>" ></asp:Label></th>
<th class="text-center"><asp:Label runat="server" Text="<%$ Resources:GlobalSite, Grupos %>" ></asp:Label></th>
<th class="text-center"><asp:Label runat="server" Text="<%$ Resources:GlobalSite, Estatus %>" ></asp:Label></th>
<th class="text-center"><asp:Label runat="server" Text="<%$ Resources:GlobalSite, DescribirUso %>" ></asp:Label></th>