Posts by Mariana • 2,512 points
256 posts
-
7
votes4
answers5024
viewsQ: How to disable field with Javascript?
I own these HTML fields: <div class="col-sm-6"> <input asp-for="ConfiguracaoTecnibra.HabilitaTeclado" type="checkbox" id="cbHabilitarTeclado" onclick="HTeclado();" /> <label…
-
1
votes2
answers186
viewsQ: Take select description - AJAX
I have this function and need to load the description of the select. In this function I can only load the id, how can I do to in place of x(which is the id) I get the description? function…
-
1
votes1
answer618
viewsQ: Pass two parameters - ASP.NET CORE
I need to pass two parameters to a page, when I’m trying to pass one, I do it this way: <a asp-page="/ContaReceber/Edit" asp-route-id="@item.Id;" class="btn btn-sm…
-
2
votes1
answer153
viewsQ: If inside the button
I have this "Receive" button, and this checkbox that when it is marked, means that the account is paid: I need that when he clicks the Receive button, and the checkbox is already checked, that he…
-
2
votes2
answers1868
viewsQ: Grab URL and skip to the next page
I have tried several ways, I need to take the value of the current URL, and move to the next page, so that after the action of the create is completed, I go back to the URL that was passed, how can…
-
0
votes0
answers717
viewsQ: After Ajax Function, refresh the page
I have this function, and I would like it to work everything ok, I would like you to update the page, but it doesn’t always update, follows how I am doing: function GravarDados() { var dataInicio =…
-
0
votes1
answer30
viewsQ: Function does not recognize hidden elements
I have a function, it works perfectly, but I need to hide the fields, which do not need to appear to the client, but when hidden, the function does not receive the values, I am using this way:…
-
-1
votes1
answer81
viewsQ: Javascript function does not work
I’m doing this job: function toDate(data) { let partes = data.split('/'); return new Date(partes[2], partes[1] - 1, partes[0]); } var atual_data1 = toDate($("#txtDataInicio").val());…
javascriptasked Mariana 2,512 -
1
votes2
answers661
viewsQ: Back to previous page - mvc page Razor
I’m trying to get back to the previous page this way: string urlAnterior = Request.Headers["Referer"].ToString(); if (urlAnterior.Contains("Pagina")) return RedirectToAction(""); else return…
-
1
votes1
answer668
viewsQ: Pass parameter to another page
Within people, I own the accounts receivable table, where I am calling the accounts receivable create page, and Edit. So far, it’s working perfectly. However, within receivables, I have one select,…
-
0
votes0
answers51
viewsQ: Inner Join core.net
I’m needing to make a Join Inner to load into a table, if it were without Join Inner I would do it this way: PessoasServicos = await _context.PessoasServicos .Include(m =>…
-
0
votes2
answers25
viewsQ: Checkbox selected in function
I have a function and I’m trying to set the checkbox as true, in function, this way: $("#cbpre").checked = true; But he’s not checking, I’ve debugged, and he enters this part, just doesn’t check the…
-
0
votes1
answer145
viewsQ: Load input text after select
I have a select that is being populated via ajax, when opening the modal, I call the function that loads the select, and it is working perfectly. But I need a cascade effect, in the first field, and…
-
0
votes1
answer223
viewsQ: Load select via ajax
I am trying to load a select via ajax, following as I am doing: HTML: <select id="cbplanos" class="form-control"></select> Controller Code: public async Task<IActionResult> Load()…
-
0
votes0
answers98
viewsQ: Erro Crystal Report
I am updating a . rpt, which worked perfectly, but I had to make some changes, and it returns me error: Follow the code of how the Crystal Report is loaded: SqlConnection connection =…
-
1
votes1
answer277
viewsA: WCF error starting as Windows service
I can not find the link where I found this answer, but this is how I solved the problem: I was working on a WFC test service hosted on Windows Service (managed). So I added another base address for…
-
2
votes1
answer277
viewsQ: WCF error starting as Windows service
I am trying to start a WCF as Windows service, but it returns me the following error: HTTP could not register the URL http://+:80/. Your process has no access rights to this namespace (see website…
-
2
votes1
answer45
viewsQ: WCF as Windows Service
I’m creating a WCF, and it’s like this: ServiceHost host = new WebServiceHost(typeof(Server)); WebHttpBinding binding = new WebHttpBinding(); binding.MaxReceivedMessageSize = 999999999;…
-
3
votes2
answers660
viewsQ: How to pick a value between brackets in the string?
I have a string that will vary the values, I need to get the values inside the [], {"time_zones":[]} In case it would be empty, it may be filled: {"time_zones":[teste]} I’m trying to do it like this…
-
0
votes2
answers133
viewsQ: Remove from mvc page " 2017 - Project Name"
I have an Razor page that I call inside another page, and because I have this identification: 2017 - Cronoparque, appears twice on the "same page", since I call one, inside the other, I would like…
-
2
votes1
answer74
viewsQ: Taking value from mvc array
I’m passing an angular array through JSON this way: $scope.gravaItem = function () { $.ajax({ type: 'GET', url: '/TaxaPreco/SalvarItens', dataType: 'json', contentType: "application/json;…
asp.net-mvcasked Mariana 2,512 -
3
votes1
answer144
viewsQ: Ajax function for MVC controller
I have this function with array and I’m not getting through to the controller values, i listing, it appears correctly, use angular. $scope.addItem = function (user) { $scope.items.push({ de:…
-
1
votes0
answers21
viewsQ: Pass angular array in json to mvc controller
I have this function that generates an array, I need to pass to the mvc controller through JSON, but it is not passing, follow how I am doing: var app = angular.module('myApp', []);…
-
1
votes1
answer724
viewsQ: Convert Time 24 hours to 00 hours
I have an int account, I need to return it for hours, and it is working perfectly, the error occurs when the time appears 24, and it should appear 00:00. Go on like I’m doing: string horaStg;…
-
2
votes1
answer31
viewsQ: Convert value to display in table - mvc Asp-net.core
I have a table that brings me a value in int and I need to convert this value to time, as I can perform this procedure, in case I would need to create a function to show me the correct value.…
-
3
votes2
answers719
viewsQ: Refresh ajax mvc core page
I need to close a modal, and refresh the page, I’m doing this way: function closeModal() { $('#myModal').modal('hide'); location.reload(); } But the first time it doesn’t work, and then it works…
-
-1
votes1
answer470
viewsQ: Viewbag, passing controller value to Razor page
I have this Ajax to be able to take the data and pass to the function Save items that is in the Schedulesitenscontroller, that even works perfectly. function SalvarItens() { var idItem =…
-
0
votes1
answer129
viewsQ: Get Hidden value . net core
Good morning I have this Hidden that gets the value correctly: <input type="hidden" id="idHorario"/> But I need to get the Hidden in the code, how can I proceed? HorariosItens = await…
-
0
votes0
answers65
viewsQ: Calling a page on another Asp.net-core
Good morning, I have an Edit Timetable page, which works perfectly, but on this Edit page, I need to call the Horario Item Index page, I’m trying this way on the EDIT page : <div class="row">…
-
0
votes1
answer49
viewsQ: AJAX function does not pass output to another function
I have this function in AJAX: function SalvarHorario() { //NomeHorario var nome = $("#Nome").val(); var token = $('input[name="__RequestVerificationToken"]').val(); var tokenadr =…
-
1
votes0
answers49
viewsQ: Doubt Json MVC Core Razor
I have created a method to perform a Insert through Ajax, thus: function SalvarHorario() { //NomeHorario var nome = $("#Nome").val(); var token = $('input[name="__RequestVerificationToken"]').val();…
-
2
votes1
answer503
viewsQ: Data return Json
I have this function to return the data in JSON, but I’m not able to make it work in MVC Core. public ActionResult SalvarItens(string HoraInicio, string HoraFim, bool Seg, bool Ter, bool Qua, bool…
-
1
votes0
answers105
viewsQ: Grab ID inserted by Ajax
I have a function that includes a register, and when including I call another function, in this other function I need to pass the last ID included, how can I do this ? function SalvarHorario() {…
-
2
votes2
answers621
viewsQ: Do not let browser save password
I need to make the browser does not save the user password, I have tried autocomplete="off", autocomplete="new-password", already put in the form of the page autocomplete="off", but even so the…
-
2
votes1
answer2032
viewsQ: Clear select element with Javascript
I have this select field: <div class="control-group"> <select runat="server" onclick="ClearOptions(this);" name="txtpesquisa" id="txtpesquisa" class="form-control.selectize-control">…
-
1
votes2
answers257
viewsQ: Add gridview dynamic checkbox
I am adding the gridview fields via code, but the checkbox does not appear, instead the check box appears: "System.Web.UI.WebControls.CheckBox" Go on like I’m doing: CheckBox check = new CheckBox();…
-
3
votes1
answer123
views -
0
votes1
answer663
viewsA: Required modal Bootstrap
I was able to solve, by placing the required, by clicking the button, and when completing the operation put the required as false. function openModalIncluir() { $('#myModalIncluir').modal('show');…
-
2
votes1
answer123
views -
0
votes2
answers313
viewsQ: Focus Textbox function and Check if it is filled
I need a function that when you click on the textbox if it is empty it becomes a color, and if it is filled change the color, but only when you click on it, how can I do it? If you haven’t filled in…
-
1
votes1
answer2137
viewsQ: Uncaught Typeerror: $(...). validate is not a Function
I am using jquery validate and it was working normally, now it is returning me the following error, I already checked the references, I changed, but still with the same problem: Uncaught Typeerror:…
-
-1
votes1
answer663
viewsQ: Required modal Bootstrap
I have a modal, where I need to validate the fields, but in the modal I can’t put the required=required, because it does not open the modal. How can I proceed, so that the function works as…
-
0
votes0
answers39
viewsQ: Lock form code when opening modal
I have a modal boostrap that works perfectly, I call it in c# code-Behind, that way: ScriptManager.RegisterStartupScript(Page, Page.GetType(), "myModal", "$(function() {openModalExclusao();});",…
-
0
votes1
answer161
views -
0
votes1
answer161
views -
0
votes0
answers17
views -
0
votes0
answers36
viewsQ: Doubt Session Asp.net
I need to pass a user’s id through a session, because it’s happening to mix users, because it was being recorded in a variable, has some way, to continue going through the variable, without having…
-
1
votes0
answers342
viewsQ: Grab first row and first column gridview Javascript
I’m trying to get the value of the first line and the first column of gridview through javascript, but it’s returning error. Keep going like I’m trying to do: var grid =…
-
0
votes1
answer188
viewsQ: CSS Bootstrap in Ajax combobox
I am using an ajax combobox, so it can be typed inside the combobox data, but I am using bootstrap and it is not configured correctly, I use class to configure, follows how it is getting: <div…
-
0
votes1
answer242
viewsQ: Webcamjs - Function does not work sometimes
I have this javascriptt function, which is when you take the webcam photo, it works, but there are times when the "webcam.snap()" part doesn’t work. I do not understand why, there are hours that it…
javascriptasked Mariana 2,512