Posts by hard123 • 2,329 points
176 posts
-
0
votes1
answer65
viewsQ: Error going through table html with jquery
I have a table HTML and I need to take the values of value='1' data-chkIdProcessamentoDiario='1' data-chkIdRegistro='1' and assign in an array, but the problem is that apparently the each does not…
-
2
votes1
answer1305
viewsQ: Generate more than one PDF in memory and export it in a compressed file
Currently the code below exports and compresses the PDF one at a time and need to export multiple PDF in one compressed file public ActionResult PDFTodosMesAtual(ProcessamentoRegistros…
-
1
votes1
answer631
viewsQ: Error converting HTML to PDF using Xmlworkerhelper
While exporting the HTML file to PDF using iTextSharp and Xmlworker error occurs in some situations saying that certain tag is not closed and searching found this post How to Convert HTML to Valid…
-
2
votes1
answer375
viewsQ: With export HTML string to PDF Compressed (zip)
I have this string: <HTML><HEAD></HEAD><body><FORM method="post"><table><tr><td>Nome:</td><td>JOÃO DA…
-
1
votes1
answer468
viewsQ: Change the color of a Webgrid mvc <td> tag
That’s the WebGrid and I need to change the background color of Celula filled in "IN PROCESSING": for Red: CSS <style type="text/css"> .grid { margin: 4px; border-collapse: collapse; width:…
-
3
votes1
answer272
viewsQ: Dynamic attributes of an Entity Model
I have a Procedure which returns a number of columns dynamic, because this precedent uses the function Pivot, then the question arises: How to create a Entity Model for this project ?. Example:…
-
3
votes1
answer796
viewsQ: How to authenticate user via AD or via SQL Server Database
The user has to access via Active Director authenticationy when you are in the premises of the Company and when you are outside the Company the access will be via login and password query in an SQL…
-
1
votes1
answer242
viewsQ: How to create a webgrid with dynamic columns?
I saw several examples using Webgrid but all with the number of fixed columns. My data source will return a dynamic list, IE, either returns 5 columns and then can return 6 columns, how to do ?…
-
1
votes1
answer107
viewsQ: Error in SQL Pivot function
First question: The Column that will become Row (in this case I specify the header) can be repeated ? I have several records that repeat, Example to Column Description: I’m trying to do it like…
sql-serverasked hard123 2,329 -
0
votes1
answer162
viewsQ: How to validate data entry from a web service?
What is the best way to validate a Webservice call? I explain: I have a Webservice that has as Request a String of varied size and that returns the same string Formatted, example: Input string: "ST…
-
2
votes2
answers200
viewsQ: Error validating with Regex
I am trying to format this text with regex but do not have the desired return: Of: "ST STN, SET J, ? SHOPS T-40 /T41, - TER-REO, SHOPPING & BOULEVARD KM 28.5 VALUE 450.00 CENTRAL." To: "ST STN…
-
1
votes0
answers769
viewsQ: Remove accents and symbols with regex
I need to remove the accents and replace the symbol & of that string: "Industry and Trade of manufactured products & aggregates, wells, manufactured and 1º ...", but it doesn’t work properly…
-
0
votes1
answer128
viewsQ: Compare and replace text in large volumes of data
I have a data dictionary with some abbreviations and I need to go through a list containing dozens and even hundreds of paragraphs in order to compare words and replace words with those…
-
0
votes0
answers553
viewsQ: Error using Nuget Package Manager in VS 2017
I installed VS 2017 community 2017 and gives this error when I need to use Nuget Package Manager ? PM> enable-migrations enable-migrations : O termo 'enable-migrations' não é reconhecido como…
-
0
votes2
answers100
viewsQ: How do I not repeat the value of an html cell
How do I not repeat the value of a cell in an html table ? For example I don’t want to repeat the cell value **DataPedido** The query that will return me the data is this: var _listaPedido = from…
-
1
votes1
answer35
viewsQ: Total sum with Line
I have no idea how to get the Total value = 755.00 of that select with Linq ? | ID |Qtde | Valor | Total | | 1 | 10 | 23.00 | 230.00| | 1 | 15 | 10.00 | 150.00| | 1 | 15 | 25.00 | 375.00| Total:…
-
2
votes2
answers55
viewsQ: How to know that called the screen
I have two screens List and Filter, both are redirected to a third screen called Visualise: Button View from the screen List: //ABRE TELA VISUALIZAR $(document).on('click', '.visualizar',…
-
0
votes1
answer332
viewsQ: Sort datatable.net jquery by date
I’m ordering the column REQUEST thus: "order": [[3, "asc"]] Note that the ordering of the column REQUEST nay is correct: The ordering of the column REQUEST it must be so:…
asp.net-mvcasked hard123 2,329 -
2
votes2
answers147
viewsQ: How do I migrate Code First without deleting data from the table attribute?
I need to change the attribute name of Heaviness for Pesoproduct, this is the code that is generated after executing the command add-Migration: namespace Web.Dominio.Migrations { using System; using…
-
0
votes1
answer479
viewsQ: How to open the Razorpdf report in a separate tab
How do I export a PDF report with Razorpdf at a separate guide ? The report opens in the same system tab, I mean there’s only one guide and if I want to access the system I have to click on back…
-
1
votes2
answers881
viewsQ: Format data dd/mm/yyyy in a jquery Datatable.net
How I format that date 2016-10-23T20:30:01.017 in one Datatable.net in the Brazilian format dd/mm/yyyy ? Controller: This relevant snippet of the code is where I populate the object that is in the…
-
-1
votes1
answer27
viewsQ: Configure Firewal SQL Server
How do you configure the Firewal rule not to keep asking for an update of a new IP ? I created an account in Azure and I have a system that is in test and the server sql server from time to time I…
-
0
votes0
answers71
viewsQ: How popular is Reportdatasource() object in a webform.aspx?
As an example below follows the example of the Entity, Interface, Repositorio and the Controller of the MVC system. In sequence the code of a formulário webform.aspx what use to display the Pedido…
-
1
votes0
answers57
viewsQ: Reportviewer does not work on Zure
I have a free account on Zure and the report does not work after uploading the project to the Azure server (on my machine works), the error says the dll is missing: Could not load file or Assembly…
-
5
votes3
answers2984
viewsQ: Delete a specific row from an html table with jquery
How to delete the row from this table: <table> <thead> <tr><th>Cod.</th><th>Nome</th><th></th></tr> </thead> <tbody> <tr…
-
0
votes2
answers839
viewsA: My site does not find the Bootstrap and Jquery files
I changed the name of Stylebundle of: bundles.Add(new StyleBundle("~/Content/css") for bundles.Add(new StyleBundle("~/Content/css/Admin") Thanks @Leonardo Coelho for the suggestions.…
-
5
votes2
answers839
viewsQ: My site does not find the Bootstrap and Jquery files
I created a website ASP.NET MVC with Code First and did the first publish of the application, the Database and the Site were created, the problem is that the site does not find the files css and…
-
0
votes1
answer143
viewsQ: Generate report in Azure
I need to generate reports in an MVC application that will be hosted in Azure and I learned through this tutorial: Using Report Viewer in ASP.NET MVC that it is necessary to hire a Virtual Machine…
-
0
votes1
answer66
viewsA: Duplicity in Datatables.net jquery
Solved, the problem was the tag <tbody> that was in the wrong place, that is inside the loop foreach.
-
1
votes1
answer66
viewsQ: Duplicity in Datatables.net jquery
I have Modal window that adds Customer Address, the problem is that the added addresses get duplicated, I am using the Datatables.net pata list the addresses. The process to add the addresses is…
-
4
votes3
answers2067
viewsQ: convert integer to decimal in jquery
I need to convert for example the value "025" for "0.25" or "005" for "0.05": I’m trying to do it this way: var valor1 = $("#ValorDesconto").val().replace(/[^\d]+/g,'');…
-
2
votes2
answers422
viewsQ: Application server
The client has no server (Windows Server or Linux) and does not want to host the system in a data center or in the clouds for example, and you want to use the system on an intranet. Currently 3…
-
2
votes1
answer318
viewsQ: Save a complex object with Entity Framework
The system has an Order screen where you can add new items or change items from that order. The object that is sent to the Repository layer is a complex object 1 x N, that is to say Pedido and…
entity-frameworkasked hard123 2,329 -
1
votes1
answer150
viewsQ: Customizing width of Textboxfor
How to change the size of Textboxfor ? I followed exactly this solution and had no effect on my form: [How to Set a Larger Size for a Textboxfor Bootstrap CSS file is being loaded first; HTML:…
-
1
votes1
answer95
viewsQ: Popular table with api Fluent
I have this model Many to Many and need to popular the table through the file Seed as described at the end of the post using the api Fluent Context file: public EfDbContext() : base("EfDbContext") {…
asp.net-mvcasked hard123 2,329 -
2
votes0
answers302
viewsQ: Tool for data modeling
Is there any tool for data modeling free in which I can make a Reverse Engineering of a Sql Server database ( express 2012) other than the Dbdesegner Fork ?…
-
1
votes1
answer83
viewsQ: Check 2 and 10 days before and 2, 5 and 10 after due day
Every month I need to send messages to customers 10 and 2 days Before of Expiration Day, and 2, 5 and 10 days Afterward of Expiration Day, I’ve broken my head and I don’t know how to do it: IF…
-
2
votes1
answer269
viewsQ: Error generating excel file
When the system runs on the server this error occurs: ERROR: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error:…
-
0
votes3
answers548
viewsQ: Save image to desktop with html2canvas
How do I save the image to the desktop or some other folder on the user’s machine ? I took the very good example of how to generate the image and save to a server folder here: Take Screen print and…
-
1
votes2
answers1138
viewsQ: Send Boleto.net by email
I have a console application that every day at dawn should send billets to customers, access and return BD ok, the system returns a list with all customer data/ Boleto, in the example of the code:…
-
2
votes1
answer473
viewsQ: Update the inline of an html table
How do I update the line index of an html table after removing it ? I explain better I have a table I can add or delete items to add I use an auto increment variable: _contaLinha++: Add items to the…
-
0
votes2
answers117
viewsQ: take the input field value of a gridview with jquery
I need to change the fields inputs of a GridView, and as they are changed I must display the sum of these fields inputs in one another input which is at the bottom of the screen and the question is:…
-
6
votes1
answer1792
viewsQ: Generate and download pdf file
Is there any specific configuration to generate pdf file on the server ? The problem is that locally in my local project works perfectly and when I go up to the server the file is not generated, the…
-
0
votes1
answer962
viewsQ: How to send data from a dynamic HTML table via json
I need to do something similar to the code below: Here I create the htmla table dynamically: $('#btnIncluirContato').on('click', function () { $('#tblContato tbody').append('<tr id=' +…
-
1
votes1
answer665
viewsA: How to pass a txt file to a Stream type parameter?
Worked using using: using (var fileStream1 = new FileStream(_arquivo, FileMode.Open)) { cnab400.LerArquivoRetorno(bco, fileStream1); }
-
4
votes1
answer665
viewsQ: How to pass a txt file to a Stream type parameter?
How to pass a file txt for a Stream type parameter? That’s the ActionResult which calls the method to read the file txt: [HttpPost] public ActionResult Incluir(ContaReceberViewModel pContaReceber,…
-
2
votes2
answers804
viewsQ: Generate text file from a console application
I need to adapt this method of an application Windows Forms https://github.com/BoletoNet/boletonet for Console Application, that is, instead of using the object saveFileDialog.ShowDialog() I have to…
-
1
votes1
answer67
viewsQ: Jquery does not send the parameter to search
I need to do something like this feature: Jquery Autocomplete jQuery: $("#NumeroContrato").autocomplete({ source: function (request, response) { $.ajax({ type: 'GET', url:…
-
1
votes1
answer187
viewsQ: Pass the Dropdownlistfor value through a @Url.Action
How to pass the value of @Html.DropDownListFor selected by a @Url.Action ?, example: <div class="row"> <div class="col-xs-4"> <label>Cliente</label><br />…
asp.net-mvcasked hard123 2,329 -
1
votes2
answers769
viewsQ: Add a datepicker calendar in multiple dynamically generated fields
How to add the calendar Datepicker | jQuery UI and various fields servants dynamically ? This snippet of code is only formatting the mask of input: dd/mm/yyyy, i need to show the calendar when the…