Posts by André Luis Marmo • 391 points
18 posts
-
2
votes2
answers300
viewsA: Why does . NET’s Garbage ollector have several generations?
The Garbage Collector collects short-lived objects more frequently than long-lived ones. Short-lived objects are stored in the first generation, generation 0. Longer-lived objects are pushed to…
-
0
votes1
answer65
viewsA: How to send selected items from a Grid by email
If I understood your question, would just group your items by Idfornecedor and send the email. var dadosPorFornecedor = model.Dados .GroupBy(x => x.IdFornecedor) .Select(x => new…
-
1
votes1
answer787
viewsA: How to extract the information from the Itau return file in C#?
The shipping and return files that the banks use are standardized by FEBRABAN and are simple text files, where in the documentation of each database has the file layout. The file layout is basically…
-
2
votes1
answer262
viewsA: Controllercontext Null
Your Controllercontext in this case will always be null because you are instantiating the controller "manually". Usually the controller is created by an Icontrollerfactoy that is usually…
-
1
votes1
answer536
viewsA: show Exception error on return of AJAX call
If you check the html that is being returned in responseText, will notice that this is an error page because of Allowget, which you did not put when it comes to the error. The right thing would be:…
-
2
votes2
answers479
viewsA: last Mysql record
Another option would be: SELECT MAX(id) FROM user
-
3
votes1
answer63
viewsA: Variable interfering with value of other variable
If I understand correctly, your problem is not in EF but rather because classes are by reference and not by value in . Net. I will heed your question: What happens is that every time I change the…
-
1
votes2
answers189
viewsA: Convert Type to List
I believe the return of your first method should be return ProdutoAmortizacaoCreditoDiasObj.result; At least it would make more sense since this property is a…
c#answered André Luis Marmo 391 -
0
votes2
answers914
viewsA: Time difference Timespan in 24hrs format
Timespan has the option to have the days as well. In its constructor has an overload that you inform (days, hours, minutes, Seconds) and if you inform the amount of days the calculation will be more…
-
5
votes3
answers1253
viewsA: What is Gzip? How does it improve a website?
gzip is used to compress the files that your website sends to the browser and thus gain speed in the transmission of these files. As information taken from the link below, you can gain up to 70% in…
-
0
votes2
answers2576
viewsA: How do I create a javascript to send a form to my email?
To send by javascript you can use smtpjs (http://www.smtpjs.com/). On the site itself has the example of how to use and watch out for the security part that they have a tool to generate a token…
-
1
votes2
answers736
viewsA: I can’t read the result of my cookie in the Chrome Browser, what to do?
I believe it might actually be some local configuration. By putting your example in jsFiddle it works correctly. function criarCookie(valorCookie) { //Criar objeto data var data = new Date(); //…
javascriptanswered André Luis Marmo 391 -
2
votes2
answers294
viewsA: How to configure jquery.maskedinput to accept valid dates only?
You can try using HTML5 Pattern. <input type="text" pattern="(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))"…
jqueryanswered André Luis Marmo 391 -
0
votes1
answer444
viewsA: Pass Web Service header parameters?
Usually this type of error is related to CORS (Cross-Origin Resource Sharing). In this post…
-
1
votes1
answer1071
viewsA: Communication failure with PHP webservice
This can happen when the webservice generates an error and instead of sending in xml format it sends in html format that would be the page with the error. The webservice client in . Net always…
-
0
votes1
answer150
viewsA: Web Questionnaire App in ASP.NET Web Forms
I saw that in your webform has a static variable "Static List questio = new List()", this makes this variable the same for all instances of your webform and this may be the cause of your problem.…
-
0
votes2
answers300
viewsA: Typeerror: b is Undefined jquery.min.js:3:6371
You do not have a "b" variable, but you are passing an object that contains a "b" attribute. Maybe it could be something with this object being passed. data: {type: label, **b**: bcd, e: ecd}…
-
2
votes2
answers409
viewsA: Pass List to Actionresult
Your problem apparently is because you are not giving Ubmit in the form but simply redirecting to the action at the click of the button. With this the information will not be passed to the…