Posts by Leonardo Bonetti • 5,313 points
231 posts
- 
		4 votes3 answers1868 viewsA: Mask in table valuesSince you are using c#, what I would use in your case to not need to use another JS library would be: For money values, it would turn into double and apply the Currency of String.Format("{0:C}",100)… 
- 
		0 votes1 answer47 viewsA: How to create a layout within Jquery and popular with data within a JSONI was able to solve it with a library called Handlerbars which allows me to create layouts and insert variables into it through the JS. First I import the library: <script… 
- 
		1 votes3 answers1314 viewsA: access a json object as if it were an arrayI manually arranged your Object('Date Expiration' '30082017' had a simple quotes and ended up giving problem), check if it is coming anyway from the server-side, anyway, to iterate on an object use… 
- 
		1 votes2 answers267 viewsA: Capture RGBA valuesSelect only the numbers from the RGBA string with a Regexp and put in an array, then just iterate over it or select by index(0,1,2,3) respectively. Taken from How to Extract r, g, b, a values from… 
- 
		2 votes1 answer323 viewsA: Searching for data via ajaxYou need to create a Object with the JSON that was returned from the request and access it with the following syntax User.nome as in this example and then insert into the tag you want, either by ID… 
- 
		0 votes1 answer47 viewsQ: How to create a layout within Jquery and popular with data within a JSONTo create my image database and I have a page that I CURRENTLY populate by iterating a list(c#), follow the code: @{ List <ImageIndexer> imagesFoundList =… 
- 
		9 votes1 answer1028 viewsQ: What is the maximum number of items I can put inside a List<T> in C#?I have several questions of performance in my application. What is the maximum number of items I can within my List<T> and what is "acceptable" within good practice. 
- 
		1 votes1 answer128 viewsQ: Is it possible to "debug" my application inside the server?I have an ASP.NET application in c#, and I do some debugs(obvious) in Visual Studio, but I always have a problem with directories, because the Godaddy directory for example is different from the… 
- 
		-2 votes3 answers323 viewsQ: How to prevent a System.Nullreferenceexception within an ifI’m developing a web application where a photographer does upload of an image. After uploading the image, I will scan the entire Metadata in order to capture some information from directories (Exif,… 
- 
		1 votes2 answers1589 viewsQ: How to apply the change in placeholder color only in some text-boxI would like to know how to change the placeholder color of specific inputs. Example: input{ display:block; margin-bottom:5px; width:200px; } ::-webkit-input-placeholder { /* WebKit, Blink, Edge */… cssasked Leonardo Bonetti 5,313
- 
		7 votes1 answer871 viewsQ: How to instruct your browser to cache my Javascript and CSS via web.configI reviewed my new website on Google Pagespeed Insights, I made some fixes, and now I need to cache some files (CSS and JS) in the browser. I looked for some articles/questions in Stack Overflow but… 
- 
		0 votes1 answer56 viewsQ: How to select a string in resx (internationalization) without using the static methodI have . resx files where I store strings in English and Portuguese, in my database I have the following table: And I want to change the description of the plans equal the first record of this… 
- 
		13 votes2 answers861 viewsQ: What is the best practice of styling an Email body?I’m at the stage of developing a welcome email. I would like to know the most correct and used practice of adding the style in my email. My question is: should I use CSS inline, embedded or… 
- 
		2 votes2 answers68 viewsA: Stylized Radio Input Does Not Pass PostDo not use display:none and yes visibility: hidden; .radio-cores input[type="radio"] { visibility: hidden; } .radio-cores label { display: inline-block; color:#fff; padding: 4px 11px; font-family:… 
- 
		1 votes1 answer36 viewsA: Text overlaid in image always visibleTo create an automatic contrast you can use the mix-blend-mode: difference; body { text-align: center; font-family: Montserrat, sans-serif; color: #000; background-image: linear-gradient(90deg,#fff… htmlanswered Leonardo Bonetti 5,313
- 
		0 votes3 answers471 viewsQ: Does the CSS "! Important" property influence website performance?I wonder if when allocating the property !important influences the performance of the site, because I use it enough to overlap the bootstrap for example. cssasked Leonardo Bonetti 5,313
- 
		1 votes3 answers338 viewsQ: How to anchor a redirect in APS.NET MVCHow can I send the user to a certain block of the page by passing the id to the url. For example: http://getbootstrap.com/css/#type, how to pass this type in ASP.NET MVC using the return… 
- 
		0 votes4 answers1734 viewsA: Add a sequence of numbersYou did not initialize the value of soma, right now! And don’t use while, use if, while will loop infinitely if the number is <= 0; var numero; var soma = 0; for (var i = 0; i < 7 ; ) { numero… javascriptanswered Leonardo Bonetti 5,313
- 
		0 votes1 answer606 viewsA: Assign a numeric value to an html class using jqueryDiego Soares, I’ve solved your problem. First I’d like to point out a few things, you were adding an attribute in the div’s called valor, this attribute does not exist and this is not a good… 
- 
		4 votes2 answers1344 viewsA: Locate record in Mysql by specific characterYou will use SUBSTRING, which returns a specific number of characters. In the example below I add the SUBSTRING(cpf,9,1), which will return the ninth character and compare with the number of the… mysqlanswered Leonardo Bonetti 5,313
- 
		1 votes2 answers901 viewsQ: How not to allow the user to access the previous login/registration page after logging in or registeringI am developing an ASP.NET application and when the user logs in and clicks on the browser button to go back he can access the login/registration page, even if I check the logged-in user’s key on… 
- 
		3 votes2 answers128 viewsA: Make LI appear only on MobileAs you asked with Jquery and not Mediaquerie, I solved the problem by giving a get at the width of the screen and setting the display as a block if it is within the width you consider mobile. There… 
- 
		1 votes4 answers456 viewsA: Take html from a created variableTry that, here it worked: var input1 = $('input').attr({ type: 'hidden', value: 1 }); var input1_2 = $('input').attr({ type : 'text', size : '14', name : 'nomeTorre', id : 'nomeTorre', class:… 
- 
		1 votes1 answer208 viewsA: What are DAO, MB, TO, SERVICE, MODEL, CONVERTER and HELPER classes?My answer is not complete, but I believe it will help. There are names there that are probably used only by your company, the ones I know are: DAO - Data Access Object. Basically it is the project… 
- 
		0 votes2 answers6013 viewsA: Printing widgets from a listForeach([tipo lista] lista on [nome da lista]{ Console.WriteLine(lista); } Where [List type] is the type (string, float,double,int, Object) and list name is the name you gave, example:… 
- 
		5 votes2 answers298 viewsA: What is the difference of use between mouseClicked and actionPerformed?Actionperformed will respond when the button is triggered, either by mouse or keyboard, Mouseclicked will only notify when the mouse is used. Source: Difference between Mouseclicked and… javaanswered Leonardo Bonetti 5,313
- 
		0 votes2 answers1418 viewsA: Buttons in JavascriptYou need to use window.open and configure it according to your need: <script> var windowObjectReference; var strWindowFeatures… 
- 
		5 votes2 answers210 viewsQ: What is the automatically created "o" element between my Buttons in HTML?I am developing a layout and when I place two Buttons on each other, is created an element "o" in my HTML, which makes the spacing between the two, I could solve creating a margin negative to the… 
- 
		0 votes2 answers289 viewsA: How to publish App in visual studio 2017 with ASP.MVC 5Ronaldo, try to do this procedure, I had the same problem and I managed to solve so:… asp.net-mvcanswered Leonardo Bonetti 5,313
- 
		2 votes1 answer87 viewsQ: How to read the IPTC header of an image through C#?How to best read the IPTC header of an image ? I have the following image and I needed to read her description (for a database of images), but I have already researched many ways that for me were a… 
- 
		1 votes0 answers268 viewsQ: How to hide URL parameters on an ASP.NET MVC 4 siteI have a question, studying the competition, I realized that when you click an image within the search result, or they pass a parameter to the Viewthus: So far so good, I can do, but I don’t think…