Posts by Leandro Angelo • 9,330 points
440 posts
- 
		2 votes1 answer53 viewsA: (SQL) Each property has multiple images and a cover imageYou can add a "Cover" column in your Images table, of a Boolean type. So you can indicate that that is the cover image, including more than one if you are going to do a slide show. In your… 
- 
		1 votes1 answer38 viewsA: Packages do not restore NugetpackageSolution found in the stack in English: 1.) Delete the directory . vs at the root of your Solution 2.) Open the.config file in all projects and add all Binding Redirects. 3.) Delete bin and obj… 
- 
		1 votes1 answer61 viewsA: It is bringing the whole column and not only a specific idAs @Renan commented you are not filtering your query, listing all results and then selecting the one with the [Km] largest... I had already pointed that out in another question of yours. Either you… 
- 
		3 votes1 answer29 viewsA: Correct desktop input toUpperCase on mobile with duplicate errorIn fact your code transforms the characters of only one input, but of all. And you don’t need a javascript for this, just text-tranform css. Here is an example where all inputs of type text will… jqueryanswered Leandro Angelo 9,330
- 
		1 votes3 answers293 viewsA: Change the color of a button by comparing 2 attributes of a list with JqueryFollow a somewhat generic answer, it would be nice if you edit your question passing more details of your problem and html and javascript structure. $(document).ready(function(){ //valores que você… jqueryanswered Leandro Angelo 9,330
- 
		1 votes1 answer35 viewsA: Doubleclick by duplicating img in a div with already predefined location (?)Kind of like this? If it’s not what you’re looking for I’ll edit the answer. var cont = 0; const images = document.getElementById('images'); const target = document.getElementById('conteudo-img');… 
- 
		0 votes1 answer1560 viewsA: Runtime error - 1035 - Selection Test 1 - URI Online JudgeA simple treatment if the values are presented as arguments to the program, if not the input is done by the Console.Radline(). Another detail, it is not good you do not indicate a namespace for your… c#answered Leandro Angelo 9,330
- 
		2 votes1 answer65 viewsA: How to duplicate an image selectionYou can clone your div, but this would duplicate the id (which is not recommended). Then using the class attribute you can select the original div and clone the element, if you need to assign an id… javascriptanswered Leandro Angelo 9,330
- 
		2 votes1 answer694 viewsA: Generate options from a select (years) according to another selected fieldFollow an example used Jquery and a simple logic, I left the rules on a switch to facilitate if I wanted to add other. $("#grau_parentesco").on('change', function () { //Selecionar //filho: Máximo… 
- 
		1 votes3 answers921 viewsA: Simulate click on Jq or JSThis script, it doesn’t simulate... it triggers the event as if the key had been pressed. var direcionar = function(keycode){ var e = jQuery.Event("keydown"); e.which = keycode;… 
- 
		0 votes4 answers1486 viewsA: Calculate inputs with JavascriptFollow an example by adding an attribute [add] to make it easy in the selector. function Soma(){ var soma = 0; $('input[somar="true"]').each(function(index){ var valorItem =… 
- 
		0 votes1 answer66 viewsA: I need to recover the title of the selected field in jquery!Follow an example using Jquery. $(document).ready(function() { $('td').click(function() { var titulo = $(this).closest('table').find('th').eq($(this).index()).text(); alert(titulo); }); }); pre {… 
- 
		1 votes3 answers59 viewsA: Redirecting users through a form$(document).ready(function(){ $("#redirecionar").click(function(){ var url = "http://www.exemplo.com.br/"+ $("#cpf").val(); $(location).attr("href",… 
- 
		1 votes1 answer226 viewsA: Reading txt with StreamreaderThe most common is UTF8, but you can also try with ANSI using (var reader = new StreamReader(@"D:\Projetos\Syns\Documentação\Contabilidade\exemplo.txt", System.Text.Encoding.UTF8)) { string actual =… c#answered Leandro Angelo 9,330
- 
		1 votes1 answer30 viewsA: Copy Object Property to anothervar a = { "propriedade_um": "1", "propriedade_dois": "2" } var b = { "propriedade_tres": "3", "propriedade_quatro": "4" } b["propriedade_um"] =… javascriptanswered Leandro Angelo 9,330
- 
		1 votes2 answers3860 viewsA: How to make element appear after scrollI noticed some syntax and nomenclature errors in your code, using only the scroll I could not get the expected result, just using a timeout to detect the end of the scroll, so the animation is… 
- 
		1 votes1 answer225 viewsA: Return of incorrect AJAX SuccessIf you want to keep in Homecontroller and the view is [HttpGet()] public ActionResult NovoCodigo() { //Adicionar a lógica necessária para rederizar sua View return… 
- 
		2 votes1 answer69 viewsA: Form sending null valuesFailed to return false and add Return to onsumbit function verifica() { if (document.cad_ori.ser1.value =='') { alert("Insira o ip do servidor 1!"); return false; }else if… 
- 
		0 votes1 answer74 viewsA: Undefined javascript function after $.getScript('');It seems to me that you are not grantindo that the script was loaded and or are forgetting to initialize something, if it is only the first case this should solve: <button type="button"… 
- 
		2 votes5 answers212 viewsA: Get array object by description in indexThe easiest would be to add a reference to Linq using System.Linq; And make the query according to the attribute you want. Console.WriteLine(myObjectArray.FirstOrDefault(x => x.Name ==… 
- 
		1 votes1 answer319 viewsA: How to make a query bringing me the last value of a specific idThat is not the solution to your problem, but the answer to your question. Whereas the Purchase table is a repository or auxiliary table (Product_value) where you keep the registered values for your… 
- 
		2 votes1 answer1061 viewsA: Change src attribute of an image when uploading via file type inputIt seems to me that in your case the error may be happening due to Jquery missing, follows the excerpt of pure javascript (jquery was only being used in a single line) var uploadfoto =… 
- 
		1 votes1 answer136 viewsA: net. 4.6.1 reference error for . netStandart 2.0Edit Classlibrary.csprj, and add the target of your web application. remembering that the tag is plural: Targetframerowks… 
- 
		0 votes1 answer43 viewsA: Get link from an image saved in the bdYou need to expose a route in your web application or webapi, where the return will be that image, then that route will be the "link" to your image. [HttpGet("{idImagem}")] [Route("Imagem")] public… 
- 
		1 votes1 answer122 viewsA: Procedure Price RangeYou are declaring more than once the same variables instead of assigning a default value and you are also left with a "," after your case. CREATE PROCEDURE BuscaPreco @preco DECIMAL, @faixa1 INT =… 
- 
		2 votes1 answer83 viewsA: Insert data into db sql serverThe problem is in your connection string <connectionStrings> <add name="SicConnectionString" connectionString ="Data Source=ETID-012312\\ETID012312;User=sa;Password=admin2312;Initial… 
- 
		0 votes2 answers147 viewsA: How to give a "refresh" after updating the new video?I think I answered that same question or a very similar one yesterday... but goes below: document.getElementById("VideoReload").load(); 
- 
		0 votes1 answer127 viewsA: How to delete data Modal Bootstrap on the second time - ASP.NET MVC 5This is because the src you set url has already been loaded, when you open the modal again, you are not reloading the player object or its content, just displaying it again on the user screen.… 
- 
		2 votes2 answers16970 viewsA: How to print A4 pages using CSS?If you already know how many items fit per page or want to arbitrarily designate when a page should be broken you can use page-break-after or page-break-before related there is an element of your… 
- 
		1 votes1 answer84 viewsA: Asp.Net 5(Core 1.0) Class Library System.Text.RegularexpressionI found this issue in the beta issues yet and was resolved by adding the "System.Text.Regularexpressions" dependency to the project.json. From what I understand, Regex is now an isolated System.Text… 
- 
		0 votes4 answers2259 viewsA: How to display a Javascript message in an Asp.net MVC view?I did so and it worked. Controler: public class MensagemController : Controller { // GET: Mensagem public ActionResult Index() { ViewData["erro"] = "Mensagem de Erro"; return View(); } } View:… 
- 
		3 votes2 answers1606 viewsA: Play one audio at a timeI think it would be better to keep a player and use a javascript function to change src and run, so you can have as many sounds as you want without having to worry about getting controlled running… html5-audioanswered Leandro Angelo 9,330
- 
		2 votes4 answers810 viewsA: SQL LIKE clause does not work with SqlparameterIt seems to me that your problem is in WHERE. Substitute: cnxCli.sel = "Select * from cliente WHERE Nome like '%@Nome%'"; For: cnxCli.sel = "Select * from cliente WHERE Nome like @Nome";… 
- 
		1 votes1 answer890 viewsA: Alignment of cells in itextsharpI know it’s a little late for the delivery of your report and I believe you have solved your problem, but I will leave this response as an aid to other users. If you add a PdfPCell, the complete… c#answered Leandro Angelo 9,330
- 
		6 votes3 answers2237 viewsA: Change column to indentity using T-SQL in SQL ServerI think your question is still a little confused, you are not presenting your real problem and starting from a solution that may be inadequate. If the field is marked with IDENTITY is because it… 
- 
		2 votes2 answers596 viewsA: How to animate the display of dynamically sized elements with CSS only?I did an experiment using Transform’s scaleY function together in the transition, the effect is not the same but "solves" the question of relative height. Suddenly it can serve as a starting point… 
- 
		1 votes3 answers1527 viewsA: How to find the negative of a color in hexadecimal?If it’s just for display you can solve this in CSS -webkit-filter: invert(100%); filter: invert(100%); Via Javascript has the solution in this other question.… hexadecimalanswered Leandro Angelo 9,330
- 
		1 votes1 answer150 viewsA: How to break line in an XML Feed according to page width?Mathew, Actually you can solve by simply adding the style word-wrap: break-word; in your div. Example, I put 120px to give the result of your example: <div style="width:120px;word-wrap:… 
- 
		1 votes1 answer465 viewsA: How to play a stream streaming mms on ASP NET?In your case there are different paths to follow, one of them would be to abandon the native player of Html5 and use some plugin like VLC, particularly I do not like this alternative. <embed… 
- 
		1 votes1 answer210 viewsA: Change the quality of a video stream c#As the Gypsy Morrison commented. The quality of the video not set at the time of transmitting the stream, but in the video. If you are using physical files you will need to have "copies" of them…