Posts by Aline • 1,703 points
78 posts
-
2
votes3
answers79
viewsA: Problem to attack son and doubt in this use
When you use this for the element that triggered the event, you will need to use it as a jquery selector: $("#a").ready(function(){ $(this).html("Oii"); //Onde $(this) = $("#a"); }); This rule…
-
0
votes2
answers134
viewsA: Repetition of JQUERY items
You should not have so many elements with the same ID, as is the case of: #qtdpedidos and #item1. Ids must be unique, when it is necessary to have more elements with a common identification, use…
-
0
votes2
answers110
viewsA: Help with threards system
In addition to Task, you can use backgroundWorker. When you access something from the interface, to get or set, you will have to use a Dispatcher to access through the ui thread, if your running…
-
0
votes2
answers340
viewsA: Form with two actions
You could replace Submit with a button and click to check: $(".btn-danger").click(function(){ $.get("dominioget/pagina.extensao?name=nomecadastrado&[email protected]"",…
-
0
votes3
answers5878
viewsA: Creating a List<> from a Json C#
Or, you can use a json to Object c# converter like this, for example: https://jsonutils.com/ And you also wouldn’t need to use a third-party package with: new System.Web.Script.Serialization var…
-
1
votes2
answers4715
viewsA: Toggle() Effect Down, Jquery
I believe that toggle alone has no way of changing the direction from the bottom up and vice versa. You can use: . slideToggle() or slideDown()/slideup() (=
-
0
votes3
answers831
viewsA: Customizing the Javascript confirm
It will not be possible to style confirm, Alert, and etc, they use default interface settings according to the platform. You can use, as commented, the bootstrap modals or other options with jquery.…
-
1
votes1
answer95
viewsA: Better options to SESSION?
Everything always depends on it. Today with ASP, depending on the architecture, you can traffic information in other ways that do not use Session, as viewbag, viewdata... You need to know what you…
-
0
votes3
answers447
viewsA: Prevent cookies from being viewed/obtained with javascript
Not only is it possible but it is strongly suggested. Of course, depending on how you will use it and what you intend to store. When you set a cookie with: httpOnly, it means that only the server…
-
0
votes2
answers355
viewsA: Error 1 The type or namespace name 'Datareader' could not be found (are you Missing a using Directive or an Assembly Reference?)
Try replacing the Reader type to var in the using and check if the value that is coming is not null: { string connectionString = "Data Source=localhost; Initial Catalog=DB_SACC; User id=sa…
-
1
votes1
answer484
viewsA: How to get the id of each link in the click? Only the first id comes
Assuming the code is: <elemento class="itn" id="valor1" /> <elemento class="itn" id="valor2" /> <elemento class="itn" id="valor3" /> Enough to get the list of ids, a separate array…
-
4
votes3
answers1306
viewsA: Diagram of class MVC
Controller and Model are two different things. Controller can inherit from another Base Controller if needed, but not from the model. In your class diagram, the methods should be the ones that the…
-
5
votes1
answer637
viewsA: Changing values in Modal - C# MVC Javascript
<script type="text/javascript"> $(document).ready(function(){ $(document).on("click", ".rename", function() { var $this = $(this); var nome = $this.data('name'); var id = $this.data('id');…
-
1
votes0
answers120
viewsQ: Over-use sessions can stop a pool on IIS?
Excessive use of sessions can cause a pool to stop? Assuming it is memory overflow, in this case, it results in exceptions also accounted for in the pool failure protection settings or in immediate…
-
3
votes1
answer1373
viewsQ: Redirect to View in another structure
I have a project, which is in an area, in it, my Main controller, has an action that, when called, should return a view that is in another folder, however, within the same area. return…
-
0
votes2
answers238
viewsA: Generate Image Thumbs Before Uploading
<input type="file" id="inp-select-img" multiple="multiple" /> <div id="div-conteudo"> <div id="div-imgs"> </div> </div> var _imgCarregando = new Image(); var _arrayUrls…
-
3
votes1
answer470
viewsA: POST problem using Jquery
If your $("#btn-submit") for a input submit, change for: button.
-
1
votes2
answers1889
viewsA: Script to select only a checkbox?
I used jquery: function marca(element) { $("nav input[type=checkbox][id!=" + $(element).attr("id") + "]") .attr("checked", false).toggleClass('item'); } HTML has changed to: <input…
-
0
votes4
answers196
viewsA: Get the id of where max(value) was found
SELECT TOP 1 id, data, valor FROM teste WHERE data BETWEEN '2017-03-01 00:00:00' AND '2017-04-01 00:00:00' order by valor desc
-
1
votes3
answers123
viewsA: Contains within a list
var lAtivos = retorno.Where(c=> c.lAcessorios.where(cI => idAcessoriosFiltro.Any(cI.Id))).ToList(); return your asset list, lAccessories to internal accessories list.…
-
1
votes1
answer580
viewsA: Ajax sending template to controller
var obj = {id: $("#id").val(), descricao: $("#descricao").val()} $.ajax({ type: "POST", url: "@Url.Action("CadastrarSementesVariedades", "SementesLevantamentoVariedades")", data: obj}); public Class…
-
0
votes1
answer110
viewsA: If Load javascript
$(document).ready(function () { verificarCheckbox(); $('[name="dtd1nrob"]').change(function () { verificarCheckbox(); }); }); function verificarCheckbox() { $(".todosOsOutrosElementos").show();…
-
3
votes1
answer116
viewsQ: Mongodb Driver Fields Exclude
My problem is this, I have an object: public class Obj(){ prop int id {get; set;} prop Client client {get; set;} } public class Client(){ prop int id {get; set;} prop Group group {get; set;} }…
-
0
votes3
answers1606
viewsA: How to request via post for action by AJAX?
var dados = { codigoPessoa: codigoPessoa, descricao: descricao}; $.ajax({ type: "POST", url: "@Url.Action("Action", "Controller")", contentType: "application/json", data: JSON.stringify(dados),…
-
5
votes3
answers3857
viewsA: Pagseguro does not redirect customer after payment
Follow the steps to deal with the issue: Access the Pagseguro control panel. In the left menu, Integrations option, Redirect Page, A. Fixed redirect page. Enter the URL in the "Set redirect page:"…
-
2
votes1
answer242
viewsA: How to transfer items between Listbox with Double Click
Try a little peek: http://www.jquerybyexample.net/2012/05/how-to-move-items-between-listbox-using.html…
-
0
votes4
answers374
views -
4
votes4
answers1989
viewsQ: Updating data with Entity framework
In the project I’m developing, MVC5, Entity 6, I’m simply not being able to update the data. The Code: zyon.TB_Cliente.Attach(cliente); zyon.Entry(cliente).State =…