Posts by Netinho Santos • 2,366 points
126 posts
-
1
votes2
answers1192
viewsA: How to apply a zip code mask to a datatable column using Javascript?
Another alternative is to bring your ZIP code already formatted in the Model Model: public string CEP { get; set; } public string CepFormatado { get { if(CEP != null) return…
-
0
votes2
answers568
viewsA: Database connection error . MDF C# Visual Studio
Version 782 is a Sql Server 2014 database file, version 706 is a Sql Server 2012 database file, it seems that you are trying a database from a newer version of the database file (SQL Server 2014) to…
-
-1
votes2
answers46
viewsA: Go to next statement - C#
Well your question is a little vague. If you wanted it to continue another instruction just call a method after Displayalert. If you wanted a stop in the application you can use…
c#answered Netinho Santos 2,366 -
4
votes3
answers119
viewsA: Invalidcharactererror
The problem is in this character '€'. According to w3schools this method only accepts the characters "AZ", "az", "0-9", "+", "/" and "=" Reference: https://www.w3schools.com/jsref/met_win_btoa.asp…
javascriptanswered Netinho Santos 2,366 -
0
votes2
answers223
viewsA: How to convert a Datetime object to string?
You can use date_format, follow an example: <?php $date = date_create('2013-11-23 05:06:07'); echo date_format($date, 'Y-m-d'); ?> Demo:…
-
0
votes0
answers280
viewsQ: Authentication and Sweet Alert - Laravel
Someone could help me, I have a tremendous doubt, I have researched so much and I have not found the solution. The scenario is as follows. I created a basic project with auth through php Artisan…
-
1
votes2
answers2189
viewsA: How to know the user’s operating system version using Javascript?
var OSNome = ""; if (window.navigator.userAgent.indexOf("Windows NT 10.0")!= -1) OSNome="Windows 10"; if (window.navigator.userAgent.indexOf("Windows NT 6.2") != -1) OSNome="Windows 8"; if…
-
3
votes2
answers1079
viewsA: Event loading when conducting queries in AJAX with ASP.NET MVC
Use a loading for ajax requests. This link will help you choose a loading of your choice: https://loading.io/ Here’s an example of how you could put a global loading on your ajax calls. <div…
-
0
votes2
answers188
viewsA: Boolean arguments, in general, are not good?
I found this article quite interesting that can resolve your doubt. Here is an excerpt from the article. "This is one of the worst practices. Booleans mean that their function will be playing a…
-
-1
votes1
answer338
viewsA: Changing model value by Jquery and Asp.Net MVC?
You can use: $(document).ready(function () { $('#addPropriedade').submit(function () { //var dados = $(this).serialize(); $('#gravarPublicar').click(function () { '@Model.status' = 1;…
-
2
votes2
answers606
viewsA: How to decrease google letters
According to the documentation you can use textstyle. https://developers.google.com/chart/interactive/docs/gallery/scatterchart#Configuration_Options var options = { annotations: { textStyle: {…
-
1
votes2
answers1052
viewsA: Unity installation is giving error
I recently had the same problem with Newtonsoft. I was able to solve it by updating. Update-Package Newtonsoft.Json
-
0
votes3
answers401
viewsA: Identify a <optgroup> with jQuery
You can use change to take the selected value from the value attribute. Example: $('select').change(function() { var selected = $(':selected', this); alert(selected.val()); });…
-
0
votes3
answers1302
viewsA: receive two houses after the comma
Use this jQuery Mask plugin to mask all kinds. https://igorescobar.github.io/jQuery-Mask-Plugin/…
-
-1
votes3
answers308
viewsA: Where does this notification "tooltip" come from
This tooltrip is an attribute of html required. Surely your property is with this annotation. Or this property is declared in html. Example: [Required(ErrorMessage = "Preencha este campo")] public…
htmlanswered Netinho Santos 2,366 -
0
votes1
answer114
viewsA: Return value in UISLIDER input
There is an example in the plugin’s documentation of how to capture the value https://refreshless.com/nouislider/slider-read-write/ alert( slider.noUiSlider.get() );…
jqueryanswered Netinho Santos 2,366 -
0
votes2
answers434
viewsA: Input Submit does not call Actionresult
beginForm uses two parameters: Action and Controller. Example @using (Html.BeginForm("SuaAction", "SeuController", FormMethod.Post, new { @role = "form", @id = "frm", enctype = "multipart/form-data"…
-
0
votes2
answers1720
viewsA: Add Jspdf image
Told you to add the parameter: doc.addImage(imgData, 'JPEG', 15, 40, 180, 160) On the site of the plugin there is an example with images. https://parall.ax/products/jspdf In this demo there is an…
jspdfanswered Netinho Santos 2,366 -
0
votes3
answers210
viewsA: Audio aleatorio na pagina
Use Math.Random(); to generate random number in the range of 1 until the amount of audio files your directory contains, after that just pass this value. echo "<audio loop='loop'…
-
0
votes3
answers2080
viewsA: avoid Ubmit of a form with barcode reader
Use e.preventDefault(); According to the Jquery documentation; "If this method is called, the default event action will not be triggered." Source: https://api.jquery.com/event.preventdefault/…
-
0
votes1
answer138
viewsA: Error in Pagseguro Module in Magento Store
See if you referenced the jQuery.colorbox file after the jquery file. <script src="Scripts/jquery.min.js"></script> <script src="Scripts/jquery.colorbox.js"></script>…
-
1
votes2
answers63
viewsA: How do I get the usermanager property started in my Model
public string Nome{ get{ if (HttpContext.Current.Session["usuario"] != null) return HttpContext.Current.Session["usuario"]; } }
-
0
votes1
answer177
viewsA: Log in with the Facebook user
Take a look at these two articles. I think it might help you.…
-
1
votes1
answer1729
viewsA: How to open the number pad in a formatted field?
Upgrade the maskinput version to version 1.4. Add type="tel" and remove the maxlength attribute from the input or set it to a certain value so it doesn’t interfere with the cursor action, like 20.…
-
3
votes3
answers4840
viewsA: How to Format Javascript Date by Naming the Month and Day of the Week
var meses = [ "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro" ]; var days =…
-
1
votes1
answer443
viewsQ: How to plot graphs using Qcustomplot in the main thread?
I would like to know how to plot the serial port data in the Qcustomplot library to keep updating. I thank you for understanding. void serialThread::run(){ mutex.lock();…
qtasked Netinho Santos 2,366