Posts by PauloHDSousa • 3,509 points
159 posts
-
14
votes2
answers4852
viewsA: Send sms from a mobile device via HTML5/javascript
Currently there is no way to send SMS only with HTML without writing native code, the closest you will get is to open the messaging application with the fields filled, to do this use. <a…
-
5
votes3
answers4237
viewsA: Date field 01/01/0001
What happens is that even being null, the field date will have a value, in case, 01/01/0001. To resolve declare the property as below. [Required] public DateTime? MeuDateTime{ get; set; }…
-
5
votes5
answers2054
viewsA: Why put Javascript, CSS, and images on another server?
'Cause it makes uploading the site faster. If you have a little time, take a test. Call google Jquery and your server Jquery, on the network Google Jquery will load faster than Jquery from your…
-
0
votes3
answers250
viewsA: Ideal environment IT sector
It probably exists, but I want to leave my opinion based on experience. Do without "cabins/stalls", a straight table with one side of the other Just like here where I work is a good option, you can…
project-managementanswered PauloHDSousa 3,509 -
10
votes2
answers362
viewsA: Error using File.Delete method within Controller
Have you tried using instead of //Aqui da-se a advertência citada acima File.Delete(nomeArquivo); Use System.IO.File.Delete(nomeArquivo)…
-
0
votes2
answers167
viewsA: Error in calculation of execution
You can do it this way. private string CalculaSaldo(FUNCIONARIOS funcionario, DateTime ultimoDia, TimeSpan cargaHoraria, TimeSpan tempoAlmoco, int diaTrabalho) { StopwatchTOTAL.Start(); #region 1…
-
5
votes3
answers2145
viewsA: How to display the exception message(ex.getMessage()) launched by the server in a jquery ajax?
Right after Sucess add. error: function (xhr, ajaxOptions, thrownError) { var mensagemErro = retornaMensagemErro(xhr); alert(mensagemErro); } It’ll stay that way success : function(dados) { // //…
-
1
votes3
answers5780
viewsA: Form opening another form within a splitcontainer
You can remove the frmCadastroCon and add the frmInformationsAdictions the same way he did to add the frmCadastroCon.…
-
5
votes9
answers2644
viewsQ: Best practice for creating if
Which of the two code options has better performance? I’m going to show you a very simple example, usually there’s more code inside the if. To) string mensagem = "OI"; if(exibirAdeus) mensagem =…