Posts by Harry • 3,805 points
339 posts
- 
		0 votes1 answer49 viewsA: Animation in Automatic Scroll by clicking on an AnchorUsing Jquery you can do a function and call her: Example: rolar_para('#componente'); //chamada function rolar_para(elemento) { $('html, body').animate({ scrollTop: $(elemento).offset().top }, 1000);… 
- 
		0 votes1 answer32 viewsA: I can’t send that form via Ajax!An example you can use in this case and serialize the form, follows an example you can use as a basis: $("#eviarAjax").click(function (e) { e.preventDefault(); var urlCompleto =… 
- 
		0 votes1 answer39 viewsA: As popular SELECT from a modal created with JQUERYIn this part of the code below, you can change: $('select.select2').each(function () { $(this).select2({ dropdownParent: $(this).parent().parent() }); }); Alters to : $.each(data, function (index,… 
- 
		0 votes1 answer43 viewsA: How to reuse an Enum on other screens containing some different propertiesYou can create a Viewmodels and inside it you can add: public class FinanceiroTipo { public int Id { get; set; } public string Name { get; set; } public bool Todos { get; set; } } in the controller… 
- 
		0 votes1 answer75 viewsA: Problem using Identity in API ASP . NET CoreIf you are using Asp.net core 3.1 The Startup: services.AddIdentity<IdentityUser, IdentityRole>().AddEntityFrameworkStores<MeuDbContext>(); See if you have installed <PackageReference… 
- 
		0 votes1 answer74 viewsA: Cors error in application dotnet core + React web appI believe it is inverted, in the "Configureservices" you add the " services.Addcors();" and in the "Configure" app.Usecors(options => options.Allowanyorigin(). Allowanymethod().… 
- 
		0 votes1 answer18 viewsA: Problems getting a Viewmodel with decimal values using AjaxHello, I believe the ideal and you do a post, by application security, if you have a form on the screen, just do so: serialize: if the form fields are the same as viewModel, it will be recognized.… 
- 
		0 votes1 answer42 viewsA: Trying a CRUD with Asp.Net Core 3.1 and gives error in connection with Sql ServerInitially you must be your connection: "ConnectionStrings": { "DefaultConnection": "Server=DESKTOP-N8415MR\\SQLEXPRESS;Database=BdCoreCrud;User Id=sa;Password=Simb@d123;" },… 
- 
		-1 votes1 answer40 viewsA: Reference the class itself in the inheritance dynamicallyHello. the question got confused more I believe I understood what you need. The ideal would be you use interfaces, would be like this: public interface IBaseTransRepository<TEntity> :… 
- 
		-1 votes2 answers23 viewsA: how to validate date field for if nothing is passed see the current dateHello, see if this works for you: [HttpGet] [ProducesResponseType(typeof(IEnumerable<TestsDto>), (int)HttpStatusCode.OK)] public async… 
- 
		0 votes2 answers82 viewsA: Jquery - How to get text inside <p> and changeThe textContent property of the Node interface represents the text content of a node and its descendants. textContent returns all elements of a node. On the other hand, innerText is aware of styling… 
- 
		0 votes1 answer48 viewsA: Select multiple records using a jquery conditionThe solution was to do so, which works very well by the way. $("#selectAllOS").click(function () { if ($('#selectAllOS').is(':checked')) { $.each($("#gridOS tbody tr"), function (index, value) {… 
- 
		-1 votes1 answer48 viewsQ: Select multiple records using a jquery conditionI have a table that has some empty columns, I want to select only the rows whose content is complete. In my example you are selecting all, not respecting the content.… 
- 
		0 votes1 answer30 viewsA: Error trying to get client IP address in ASP.NET CORE 3.0A more practical solution In Startup add in Configuraeservices //Resolve a injeção de dependencia para a classe concreta em uma única instância Singleton… asp.net-coreanswered Harry 3,805
- 
		1 votes1 answer30 viewsQ: Error trying to get client IP address in ASP.NET CORE 3.0I am searching a way to get the IP of the logged-in user did the installation of: Microsoft.AspNetCore.HttpOverrides 2.2.0 In Startup I added in Configure : app.UseForwardedHeaders(new… asp.net-coreasked Harry 3,805
- 
		0 votes1 answer21 viewsA: Problem using Rotativapdf on aspnet core 3The solution and install the version Install-Package Rotativa.AspNetCore -Version 1.1.1 In Startup just make the configuration: //Configuração do rotativa RotativaConfiguration.Setup(env2,… asp.net-coreanswered Harry 3,805
- 
		-1 votes1 answer21 viewsQ: Problem using Rotativapdf on aspnet core 3I have followed the recommended settings in the documentation, performed several searches, I have no error in the example but the report is not generated. Initially I did the installation of :… asp.net-coreasked Harry 3,805
- 
		0 votes1 answer111 viewsA: Format value received in JSON C#The solution was to return the value to the already formatted view. Controller: [HttpGet, ActionName("ObterValorHoraPrecificacao")] public async Task<IActionResult>… 
- 
		0 votes1 answer111 viewsQ: Format value received in JSON C#After returning the value to my form, I want to format it to show the decimals correctly. I’ve made several attempts using jQuery Mask, but I haven’t had any success. I appreciate if anyone can… 
- 
		0 votes1 answer51 viewsQ: Savechanges() method returns the added record idI have in my Repositorygenerico the methods : public virtual async Task Adicionar(TEntity entity) { DbSet.Add(entity); await SaveChanges(); } public async Task<int> SaveChanges() { return… 
- 
		1 votes1 answer111 viewsQ: Can you get Event.preventDefault() if the call has parameters?I’m doing an operation where I got the call of a method, in this specific case how I could catch the event.preventDefault() form. <button type="button" class="btn btn-primary"… 
- 
		0 votes2 answers396 viewsA: Use LIMIT in a DatatableHello, for you to do this you need to use jQuery Datatable Server-Side I’ll make an example for you to have a better idea. Based on a table, it would look like this: <script… 
- 
		1 votes1 answer42 viewsA: Traverse DOM elements with each functionHello, see an example of how you could do, $('#my-list li').each(function(index, element) { console.log(index + ' : ' + element.innerHTML); }); <ol id="my-list"> <li>Red</li>… 
- 
		0 votes2 answers415 viewsA: Search in the database with selectHello, at this point where you say: I’m developing a website to display registered videos, to this I did with a select to select the desired discipline of user. I’m seeing the video table query, but… 
- 
		1 votes1 answer67 viewsA: Show advertiser only for advertisersHello, what are you doing in this part of the code $sql = mysqli_query($connect, "SELECT * FROM anuncios"); You are listing all ads from all users, in which case you need to pass the Logged in user… 
- 
		2 votes1 answer297 viewsA: Startup at . net core 2.2 and . net core 3.1Hello, in the version of Core 3.0 or 3.1 the configuration is app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}");… 
- 
		0 votes1 answer425 viewsQ: How to send data array to Asp.net core controllerI have a screen where I have the registration of some items, in my control I am receiving the data of the array, but it is coming empty. I already tried some options here on the forum, such as… 
- 
		1 votes1 answer194 viewsQ: Return some query columns using LINQI have a query that returns me all the columns and I’m using only two columns (id and nome) in my select2, I thought to bring only these columns, I wonder if it is possible to bring in the query… 
- 
		0 votes1 answer214 viewsQ: How to view the selected file names in the Multiple file?Hello I have a Multiple file and would like to show inside it the name of the selected files, I have a code that lists the names in the console.log, more as I could add them within the input type… 
- 
		3 votes1 answer62 viewsQ: Doubt with Viewdata using Asp.net core 2I made an example for testing using Viewdata, apparently it should work, but it is generating me a reference error, as message below. The type or namespace name 'Student' could not be found I made a… 
- 
		0 votes1 answer124 viewsA: Doubt with json format Asp.net core web apiTo capture data from an array, I can use: console.log(records[0]. name) the final example would look like this: // Mostra os resultados: document.getElementById('results').innerHTML = `… 
- 
		0 votes1 answer124 viewsQ: Doubt with json format Asp.net core web apiHello I have a functional example of data query searching the zip, the data are returning in the format: function searchCep () { // Recupera o value do input cep let cep =… 
- 
		1 votes1 answer153 viewsQ: Is there a reference for system.web in Asp.net core 2.1?I’m setting up a Helper and need to use Httprequestbase on Asp.net core, but I can’t find a reference How could I add ? Thanks 
- 
		2 votes1 answer1163 viewsA: Problem with (Sql Server) insufficient system memory in Resource poolI found a solution: Workaround (This applies only to Dedicated Server clients). You must adjust the SQL Server Minimum Memory setting to 500 MB or more. While this can make the module work properly,… 
- 
		1 votes1 answer1163 viewsQ: Problem with (Sql Server) insufficient system memory in Resource poolI have a problem in some queries performed by the system, I analyzed the code and there is no error, more the bank is returning me to the message "There is insufficient system memory in Resource… 
- 
		1 votes3 answers640 viewsA: How to use anchor in vuejs/Vue-Loader?Hello See another solution, maybe it’s simpler. <a v-bind:href="ancoraTeste" @click="showAlert">{{textLink}} </a> <div id="ancora" style="margin-top: 500px"> <h1> Oi, eu sou… 
- 
		4 votes1 answer154 viewsQ: Problem with exporting to Excel using C#I am exporting a list to excel, it occurs that in one of the fields, "fiscal note number content" and very large, excel tries to format it, generating special characters. Is there any way to select… 
- 
		0 votes1 answer66 viewsA: Doubt with Concat on OracleThe solution to the problem: select ''''|| nvl(nf.chave, '-')||'''' from NF nf This way I get the result: '51160307053693005199550510000032181665018130'… 
- 
		-2 votes1 answer66 viewsQ: Doubt with Concat on OracleI have a problem in exporting data to Excel, the number recorded in the database and very large generating several strange characters in the conversion that Excel tries to do, so I need to send it… 
- 
		5 votes3 answers2746 viewsA: How to write HTML as text within a div?See if this helps in the solution: <script> function mudaConteudo() { document.getElementById("demo").innerHTML = "<p>Outro texto</p>"; } </script> <p id="demo"… 
- 
		0 votes1 answer29 viewsA: Doubt with bank restore on oracle 11gThe problem was in the user, I added the same user used in creating the backup, so the tables were listed. 
- 
		0 votes1 answer29 viewsQ: Doubt with bank restore on oracle 11gI’m having a hard time, I have my local bank, oracle XE, I’m adding a backup of the database I received, I made the following settings described, after finishing the bank’s Restore successfully, I… 
- 
		2 votes2 answers293 viewsQ: Using Linq to sql, how do I get the generated sql query?Hello. If I have an example: var agendamento = _repository.First(a => a.iid == id && a.locIid == _usuario.LocalidadeContextoId && a.activeVersion == 0, "", true); I can see the… 
- 
		0 votes1 answer646 viewsA: Get the image of a JsonYou can use one of the extensions for Chrome (for development): Allow-Control-Allow-Origin: * CORS Toggle These extensions disable Chrome security with respect to communication from different hosts… 
- 
		0 votes1 answer276 viewsA: Select table row contentOne way to make it simpler, would be to use Axios, an example would be like this: var nome = "itasouza"; //usando o <script src="https://unpkg.com/axios/dist/axios.min.js"></script>… 
- 
		0 votes3 answers1771 viewsA: 'Access-Control-Allow-Origin' errorI believe the problem is not "Access-Control-Allow-Origin," made an example here and do not show me this error, actually this api does not have access to external query var xhr = new… javascriptanswered Harry 3,805
- 
		-1 votes2 answers3236 viewsA: How to overcome Xmlhttprequest cannot load?Hello. You can do it like this: Example: var xhr = new XMLHttpRequest(); xhr.open("GET","https://api.github.com/users/itasouza"); xhr.send(null); xhr.onreadystatechange = function(){… 
- 
		0 votes2 answers723 viewsA: Xmlhttprequest Expect ResponseHello, there is a way to do this simple. using the //usando o <script src="https://unpkg.com/axios/dist/axios.min.js"></script> axios.get("https://api.github.com/users/itasouza")… 
- 
		0 votes2 answers424 viewsA: Is it possible to perform colspan on Datatables?One way to do this would be to add in cells: <th style="width: 40%;">Nome</th> <td style="width: 40%;">resultado)</td> 
- 
		2 votes4 answers6487 viewsA: Maximum request size ASP.Net MVCIn web config, there is already a configuration: <system.web> <httpRuntime targetFramework="4.5"/> </system.web> Just change it, it’ll stay that way: <system.web>…