Posts by Luks Indie • 89 points
8 posts
-
0
votes2
answers176
viewsA: Run Modal Code Behind ASP.NET?
Page.ClientScript.RegisterStartupScript(GetType(), key: "script", script: "<script>$('#mymodals').modal('show');</script> ", addScriptTags: false);
-
0
votes1
answer34
viewsA: List of JS objects in the C# MVC Controller does not appear in the Request.Cookies
People could solve where I used to add cookie just put encodeURIComponent document.cookie = 'Nome=' + encodeURIComponent((JSON.stringify(produtos))); and for reading decodeURIComponent I pick the…
-
0
votes1
answer34
viewsQ: List of JS objects in the C# MVC Controller does not appear in the Request.Cookies
I’m putting the following Cookie: document.cookie = "Teste=" + '[{"Id":20,"Nome":"Prato Feito","Valor":12.5,"Quantidade":1,"Imagem":"/images/ImgEmpty/noImg.jpg","Descricao":"Batata Palha, Cebola,…
-
1
votes1
answer72
viewsQ: Load a Function after Success return and redirect page
I got the following button: <a asp-controller="Checkout" asp-action="Checkout" class="btn btn-success btn-lg btn-block pull-right" onclick="Checkout()">Finalizar</a> he calls the…
-
2
votes1
answer223
viewsA: Problems loading Dropdownlist in cascade - Asp.net Core MVC
tries to change his success: success: function (data) { var itens = "<option>Selecione Contato</option>"; $.each(data, function (i) { itens += "<option value= " + data.id + "> " +…
-
0
votes2
answers130
viewsA: I have Error in viewModel ASP.NET MVC C#
Why not create the viewModel with whole object of Category and Ad public class ViewModel { public Category Categories { get; set; } public Ad Ads { get; set; } }…
-
-1
votes2
answers47
viewsA: Value of div being sent dynamically to php page
0 var score = $("#cScore"). val(); then just send this "score" to where you want https://jsfiddle.net/lucasguarasp/4schxv9t/…
-
1
votes1
answer76
viewsQ: Add inside a new position array in javascript
var produtos = new Array(); produtos = [{"Id":2,"Nome":"X bacon","Valor":12,"Quantidade":1},{"Id":3,"Nome":"Lucas","Valor":9.97,"Quantidade":1},{"Id":4,"Nome":"teste","Valor":5,"Quantidade":1}] I am…