Posts by Paulo Henrique • 379 points
18 posts
-
0
votes1
answer454
viewsQ: Export List to Excel
I have a list and would like to export to Excel, in this code this bringing the records correctly, just do not export the file. I need to add something else or I’d have another way? CorpDAO dao =…
-
0
votes1
answer637
viewsQ: filter table Asp.net mvc
I need to filter a table, which is in a partial view, depending on the parameter typed in a field, which is passed to the controller via ajax. How to reload the table with the filter applied? Part…
-
0
votes1
answer488
viewsQ: Extract . zip file
I have a file that is zipped by the 7-Zip, at the time of unzipping by the c#, using the following code: try { ZipFile.ExtractToDirectory(caminho + "\\" + arquivo, arquivo); } catch (Exception e) {…
c#asked Paulo Henrique 379 -
0
votes1
answer1398
viewsQ: Check that the file has been copied
I have the following situation. A file is placed in a certain directory, when it is copied need to move it to another folder. How do I check if you have finished pasting this file to be moved after.…
c#asked Paulo Henrique 379 -
1
votes1
answer1022
viewsQ: Pass text from a textbox via parameter in onclick
I need to pass as parameter the content that is in a textbox, in the onclick of a button. How can I do this? This is the HTML code: <div id="popup"> <table width="300" height="160">…
-
3
votes3
answers833
viewsQ: Jquery modal does not open
I’m trying to implement a modal, but I’m not getting it open, someone could help me. <script src="~/Scripts/jquery-2.2.0.js"></script> <script…
-
0
votes1
answer1502
viewsQ: pass jquery data to the controller and return values
I need that when textbox loses focus, pass the value you have in it to my controller, in my controller I will return an object to jquery, so I can fill in the other fields. I wonder how I could do…
-
0
votes3
answers805
viewsQ: Picking text from a particular column with jquery
Good afternoon. I need to take the value of one DropDownList in a given table column. This would be the table: @model IEnumerable<Santander.Web.MVC.ValidacaoGanhadores.Models.Ganhadores>…
-
7
votes2
answers2360
viewsQ: Fill Jcombobox with an object
I would like a help to fill one JComboBox with a class. In this class, return two parameters: Id and Desc. Category class I need to show in combo: private int Id_categoria; private String…
-
0
votes1
answer377
viewsQ: Copy files showing progressbar
Good morning. I have a small code where I copy files from one folder to another, but as some files take time, I would like to show a progress bar, how can I do this with this following code: string…
-
0
votes1
answer1200
viewsQ: How to perform procedures within another?
I have this process where I save inside a cursor all the other procedures that need to be executed, then I go through the cursor by placing the names of the procedures inside a variable. How to…
-
2
votes1
answer302
viewsQ: Dropdownlist with checkbox
Would anyone know a way to make one DropdownList with checkbox? I have the following Dropdownlist: @Html.DropDownListFor(model => model.CD_AFFILIATE, new SelectList(@ViewBag.list,…
-
0
votes1
answer663
viewsQ: pass actionlink parameters to jquery function
How would I pass parameters from an Actionlink of a grid to a jquery function? This is the Actionlink: gridPortfolio.Column( format: @<text> @Html.ActionLink("Delete", "DeleteData", new {id =…
-
5
votes3
answers11042
viewsQ: how to Fill a Dropdownlistfor
Could someone help me how do I fill one DropDownListFor? Before I was doing it this way: @Html.DropDownList("lstAffiliate", string.Empty); But I saw that it was not recommended, then I decided to do…
-
2
votes3
answers1096
viewsQ: Pass Viewbag to _Layout
I need to pass a list to my layout where it is used in all my pages, I would like to know how I could do this?
-
4
votes1
answer357
viewsQ: Hide a column from a Webgrid
Good afternoon. I have a Webgrid and would like to leave an invisible column. How could I do that? this is the grid: @{ Layout = null; WebGrid grid = new WebGrid(Model); } @grid.GetHtml(columns: new…
-
0
votes1
answer190
viewsQ: Show content in textboxfor
I would like to know how to display the value of a property within a textboxfor. I have the following code: @model Calcular.Models.Conta @{ ViewBag.Title = "Somar"; } <h2>Somar</h2>…
-
2
votes2
answers3063
viewsQ: Pass values from a form to a method in the Model and return the result to another textbox in the Form
I have a very simple form with 3 textbox and a button. I would like to take the value of the first two textbox by clicking the button and passing to a method present in my model and after that…