Posts by Salatiel • 464 points
18 posts
-
3
votes1
answer512
viewsQ: Serialize composite object into a single json
With Newtonsoft.Json, to the next object: public class Person { public string Name { get; set; } public string GeneralText { get; set; } public Address Address { get; set; } } public class Address {…
-
2
votes1
answer29
viewsA: Problems picking up data in previous record - Mysql
The LIMIT works as follows: SELECT * FROM [TABELA] ORDER BY [COLUNA] LIMIT [INDICE_INICIAL], [NÚMERO_ELEMENTOS] Where the INDICE_INICIAL is the initial element to be searched for - 1, that is, its…
-
0
votes1
answer641
viewsA: 413 request Entity Too large
As a last attempt, we decided to delete all references and uses of the WSDL in our project and redo it, but when we tried to error. We identified that the error was due to a DNS problem. We fixed…
-
0
votes1
answer78
viewsA: Organize EDMX Classes
I found that the solution is simpler than I expected. //Classe gerada automaticamente pelo EF public partial class BaseClassPartialTests { public string PropTeste1 { get; set; } public string…
-
0
votes1
answer641
viewsQ: 413 request Entity Too large
I have a banknote issuing service that was running normally on a VM on Azure. We migrated to a Google VM and now presents this error when the note has many products: 413 request Entity Too large I…
-
2
votes1
answer78
viewsQ: Organize EDMX Classes
I have a DB First project that uses an EDMX to map the database. The tables have standard columns that exist in all of them and that I could organize and make the code much more generic if it was…
-
-1
votes1
answer261
viewsQ: Windows Server 2012 application with Locaweb domain
I have a Google Cloud server Windows Server 2012, but I don’t know much about the infra. How do I point out a domain I have on Locaweb to my application running on IIS? On the site of Locaweb asks…
-
2
votes2
answers805
viewsQ: Group by by two fields ordered by a third
I have the following data: |--------------------------------------------------------| |USER | ID | DEVICEID | DATE | |--------------------------------------------------------| |7 | 14450 |…
-
1
votes1
answer92
viewsQ: Linq to SQL - Dynamic sort by column index
I’m using a component called datatables.js (https://www.datatables.net/) to display my tables and it owns the property Serverside, that I call, in Ajax, my list from somewhere. It sends the…
-
4
votes2
answers853
viewsA: How to get Text from a Listview?
As far as I know there is no way to do this directly, except if you use javascript in your logic. The id of your controller when it is rendered is not the same that you use when developing, because…
-
1
votes1
answer77
viewsA: Download file via ashx
I solved my problem with the following code: function GetFile(p1, p2, p3) { ShowLoadDiv(); setTimeout(function () { var url = "/MyHandler.ashx?p1=" + p1; if (GetRequestReturnStatus(url)) {…
-
1
votes1
answer77
viewsQ: Download file via ashx
I need to make a Javascript method that calls an ashx (Generic Handler) that returns an array of bytes (a file). This file can be XML, TXT or PDF. So far I solved the problem, but when the file does…
-
0
votes2
answers228
views -
0
votes2
answers228
views -
14
votes3
answers4398
viewsQ: How to force load JS and CSS files with each new published version?
Every time I publish a new version of my web application (a multienterprise system) that has changes in JS and CSS files, some clients complain of errors and I end up finding that is the cache of…
-
1
votes2
answers353
viewsA: Versionar project with Visual Studio 2013 and 2015
It depends. If the project was created in VS 2013, there will be no problems to open and edit in VS 2015 and maintain versioning. The compatibility with Framework 4.5 is complete. However, if the…
-
0
votes3
answers5248
viewsA: How to open a link in a new aspx tab
Hello! Try using the code below directly on Linkbutton. When you specify that it only works with clicks, what would you like to do then? Would you like some internal page business rule to open a new…
-
3
votes1
answer1028
viewsQ: Organize Javascript files for a project
I am working on a Web System with multiple screens and they have different functions in Javascript and several apply to only one page. How do I organize Javascript files? Best practice? Create a…