Posts by João Alex • 79 points
4 posts
-
2
votes2
answers632
viewsA: Set model property in javascript variable
Quotation marks on your property, as an example below @model Aprendendo.Asp.Net.Model.Usuario //Códigos html <script type="text/javascript"> var idUsuario = '@Model.Id'; //Demais códigos…
-
1
votes1
answer183
viewsA: Actionlink on a list without reloading page
A way for you to solve this problem and use ajax <script> function Finalizar(id) { $.ajax({ url: '@Url.Action("Finalizar", "Home")', dataType: "json", data: { id: id }, success: function(data)…
asp.net-mvcanswered João Alex 79 -
0
votes3
answers8129
viewsA: Loading in ajax
I believe this code will help you. $(document).ajaxStart(function (){ //Show loading }).ajaxStop(function () { //Hide loading })
-
1
votes1
answer94
viewsA: Populate Validationsummary with Data Annotations errors in Submit by AJAX
To verify this, use the code below: if ($("#idForm").valid()) { $.ajax({ url: '@Url.Action("CriarEvento")', type: 'POST', data: $(this).serialize() + '?preco=' + preco, success: function (obj) { if…