Posts by Rodrigo Reis • 356 points
5 posts
-
1
votes1
answer93
viewsA: Pass list to model
There are several more elegant ways to be doing this. But it can be simplified as follows: var model = list.Select(item => new ComentarioModel { Id = item.Id, GrupoTrabalhoId =…
-
2
votes1
answer825
viewsA: Calling API via Post with JS or JQ
1) According to the documentation in the data to pass a URL of the image the property should be image_url and not url. 2) Change the type of dataType of jsonp for application/json Final code:…
-
11
votes7
answers115219
viewsA: Mask for CPF and CNPJ in the same field
The proposed solution does not work very well because the written boolean condition may present anomalies in the 'focusout' event'. I propose the following solution: $(document).on('keydown',…
-
7
votes4
answers9024
viewsA: How to make the 'focusout' event an input?
Hello, HTML: <form action="/" class="search"> <fieldset> <label for="pesquisar" id="meuLabel"> <span>Buscar</span> </label> <input type="text" name="s"…
-
0
votes2
answers670
viewsA: What is the equivalent of Usercontrol in ASP.NET MVC?
I believe that the equivalent of Webusercontrols for MVC would be the concept of Partialview, know more in : Partial View in ASP.Net MVC 4 in Code Project…