Posts by Mariana • 2,512 points
256 posts
-
-1
votes0
answers16
viewsQ: Dynamic progressibar
Good morning, I need to unite two progressbar, or at least leave the two closer together, but in any way I try I can not, I will make a comparison: <mat-card fxFlex="100" fxFlex.gt-md="66.66">…
-
0
votes1
answer31
viewsQ: Duplicate Username - Entity Framework
I am in an ongoing project, today has already been installed the Entity framework. But what happened, it doesn’t let add users with the same name, which makes no sense, since they can have equal…
-
0
votes0
answers15
viewsQ: String parameter in URL - MVC
I am using a url to access another url, and then in case I use encoding in the parameter, when generating the URL is this way:…
asp.net-mvcasked Mariana 2,512 -
2
votes0
answers64
viewsQ: Load JST Manual
I have an application in MVC that works perfectly, where it uses JST, and it loads everything right, this way: But now I’m adding this part in angular, and I can’t load the templates, I thought to…
-
-2
votes1
answer37
viewsA: Array objects in angular
I managed to settle by doing this way: for (let i = 0; i < form1.controls.length; i++) { this.phase.activities.push({ name:form1.at(i).get('name').value, qtd: form1.at(i).get('qtd').value, unit:…
-
-2
votes1
answer37
viewsQ: Array objects in angular
I’m doing it this way to fill the array: let form1 = this.formGroup.get('array_activity') as FormArray; console.log(form1); if (!this.data.isEdit) { for (let i = 0; i < form1.controls.length;…
-
0
votes1
answer85
viewsQ: Encrypt and decrypt
I took this code here to encrypt and decrypt a Id of the type `Guid: public static string EncryptString(string text, string keyString) { var key = Encoding.UTF8.GetBytes(keyString); using (var…
-
1
votes1
answer91
viewsQ: Generate Token API access
Good morning, I will send a link through my system for the client to have access, until then everything is ok, however I wanted to send a token to validate, along with the link, and when the client…
-
0
votes1
answer154
views -
0
votes1
answer145
views -
-3
votes2
answers53
viewsQ: Return void in an Actionresult method?
I have this method below, and I need to have a condition that depending on it will open a new tab with a url: public ActionResult Index() { //condição return Response.Write(@"<script…
-
2
votes1
answer25
viewsQ: Insert password entityframework
I’m trying to insert a user that already exists in another database, but in the previous database, there was no validation of the Entity framework, so for example, the password could be 123456. So…
entity-frameworkasked Mariana 2,512 -
0
votes1
answer86
viewsQ: Select with two context in entityframework
I need to make a comparison, from two databases, I need to bring the emails that do not exist in the other bank. I tried to do it this way: var email = _contextVO.Usuarios.Where(x => x.Ativo ==…
-
2
votes1
answer205
viewsQ: Two error connection in the Entity Framework class constructor?
I need to use the connection to two databases, using Entity Framework, on appsettings.json, I added this way: "ConnectionStrings": { "banco1": "caminhobanco1", "banco2": "caminhobanco2" }, and in…
-
-1
votes1
answer43
viewsQ: Spend the month and year when the user clicks
I have this input, that I would like to click I spend the day, month and year that will appear, and not the current month, I will need to make a condition, that I already have ready, but I do not…
-
0
votes2
answers167
viewsQ: Pass value to array - angular
I have this formGroup: this.formGroup = this.formBuilder.group({ id: [null], code: [null, Validators.required], description: [null], percent: [null, Validators.required], dueDate: [null,…
-
1
votes1
answer20
viewsQ: Length Group By does not work
I’m using this function to group some data that comes from the API: function groupBy(objectArray, property) { return objectArray.reduce(function (acc, obj) { var key = obj[property]; if (!acc[key])…
-
0
votes1
answer36
viewsA: Table loaded by javascript passing tags
I was able to solve, apart from the html part, with the method below: public static string StripHTML(string input) { return Regex.Replace(input, "<.*?>", String.Empty); }…
-
-1
votes1
answer36
viewsQ: Table loaded by javascript passing tags
I have a table which is loaded via ajax, in this way: $.each(data.listaNSerie, function (i, item) { $("#tableNSerie").append("<tr>" + "<td>" + item.produto.codigo + "</td>" +…
-
0
votes1
answer503
viewsQ: Example of use - angle mask
I have these two fields, phone and zip code, where I would like to put mask, but as I started using angular a short time, I do not know, and I found nothing explanatory on the internet, that would…
-
1
votes2
answers44
viewsQ: Function in onpaste
I have this input where I own a function, just to accept numbers by typing it works, however I would like to put this function in the onpaste also, if I do putting onpaste="return…
javascriptasked Mariana 2,512 -
0
votes1
answer557
viewsQ: Case in Where for query filter
I have this select below, but when date is true, he needs to bring all the records where the field OrdemServicos.DataConclusao is different from null, and when it is false needs to bring everyone…
-
0
votes2
answers236
viewsQ: Changing the label of a radiobutton
I have this radio button and would like to change the text of radio button "All" for yes, depending on the condition: <label id="radiotodos" class="radio-inline control-label"> <input…
-
0
votes2
answers67
viewsQ: Validate a table column
I have a table that I fill in she sees ajax, and it works normal, but it’s only bringing one line, when I check to see if the line is filled, it brings me two lines. <table class="table…
javascriptasked Mariana 2,512 -
0
votes4
answers2454
viewsA: How to change the button color of the bootstrap navbar?
Follow an example: <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"/> <nav class="navbar navbar-dark bg-dark"> <!-- Navbar…
-
-2
votes1
answer51
viewsQ: Disable disabled from form
I have this function, where it checks the data, to exit the page, what happens that some data get like disabled according to the data reported, and I cannot verify the data. $(function () { var…
-
0
votes0
answers73
viewsQ: CSS value check
Some time ago I even asked this question here in the forum, where they answered link and helped me a lot. Stayed that way: #mostrar { display: none; } #idfornecedor:not(:placeholder-shown):hover +…
-
0
votes4
answers687
viewsQ: Disable html element with jquery
I have this code, where I would like to disable it when performing a function, and after finishing, enable it. <th href="#" style="text-align:right"><a title="Validar Pedido"…
-
1
votes1
answer2188
viewsQ: Nullable Object must have a value
I have this SELECT, where m.EmpresaID may come null: var pesquisa = from pro in db.Produtos join prodempresa in db.ProdutosEmpresas on pro.Id equals prodempresa.ProdutoID into Details from m in…
-
0
votes1
answer236
viewsQ: Sort via javascript function
I have this function, in various parts of my code, that performs the filter of what was selected and as it was typed. function myFunction() { var input, filter, table, tr, td, i, filtro; input =…
-
0
votes1
answer33
viewsQ: Send hyperlink by email - link break
I’m trying to send one hiperlink by email, however it breaks at the time of space, in the same email, I send two hiperlink, one that has no space at all, it sends correctly, but this one it breaks:…
-
0
votes2
answers79
viewsA: When selecting a certain value in the combobox, insert values in another
Apparently your code is correct, I believe it’s the problem in the if if (comboBox1.SelectedIndex == 1) { comboBox2.Items.Add(new Item("Blue", 1)); } Using to compare in if is ==. And to add on the…
-
2
votes2
answers708
viewsA: Transform into strings numbers containing semicolons
To get a javascript value, I turn into Number in that way. vp = Number(ValorTotalPedido.replace(/[R\$ \.]/g, '').replace(',', '.')); You’d have to do something like this:…
javascriptanswered Mariana 2,512 -
0
votes1
answer599
viewsQ: Create a list with selected table values with checkbox
I have this código, that he catches the id selected from table: $("#tablepesquisaclientes tr").each(function (index, el) { var $linha = $(el); var checked = $linha.find('.checked:checked').length;…
-
0
votes1
answer75
viewsQ: Data-required validation in select
I have this code that it checks if there are any input with data-required which was not filled out, to inform the user. However I have 3 selects that are not being verified.…
-
0
votes2
answers135
viewsA: Add and Multiply values without refresh from button and input
Follow an example of a function, I didn’t quite understand what you want, it does the math: function upPreco() { var Valor = document.getElementById("valor").value; var Pagamento =…
javascriptanswered Mariana 2,512 -
0
votes1
answer24
viewsQ: Form does not respect Location set manually
I have this code to open one form which has the size 324x172. I’m doing this way to open as per resolution: FormLembreteCheque aviso = new FormLembreteCheque(); int c =…
-
0
votes2
answers893
viewsQ: Validate data in sql server
I get a date, and I need to know if it’s valid, if it’s not, I need to shorten her day until it’s valid. set @data = (select…
-
0
votes1
answer86
viewsQ: Disable required data Annotation via jquery
I need to disable the required of dataannotation via jquery, and need to disable also the data-required, this I have managed, but not required, I am trying to do this way:…
-
1
votes0
answers48
viewsQ: Httpwebrequest error
I’m using this code below to send a xml to the webservice from city hall, the maximum RPS you send is 40. What happens is that I already sent with 40 and did not get problems earlier. It is…
-
1
votes0
answers241
viewsQ: An error occurred while sending the request
I am generating a batch xml of rps, and to envelop, and add ![CDATA[ he jumps line, I thought it was something with the registers, but I managed lot of only one rps, one by one, to see if it would…
-
0
votes1
answer41
viewsQ: Configure requestTimeout in code
I got a 502 error, and after much searching I saw that increasing the requestTimeout the problem would work. But I can only increase directly in web.config, thus adding to the line: <aspNetCore…
-
1
votes1
answer299
viewsQ: Change float field to decimal
I have a field, which in the model was like float, and that’s how you got saved, and you already have data in those columns. But what happens is that now I need 6 decimal places after the comma.…
-
1
votes1
answer147
viewsQ: Subquery with entityframework lambda
I have this select which on the basis of it was made in the entity framework select PedidoVenda.Id, Funcionarios.Nome, FaturaContasReceber.FaturaContasReceberPId, FaturaContasReceberP.TotalFatura,…
-
4
votes1
answer160
viewsQ: Error signing xml passing PIN automatically
I have this code that selects the certificate according to the serial passed: public static X509Certificate2Collection SelecionarCertificado(string serial) { X509Store store = new…
-
0
votes2
answers128
viewsA: Session variable always returns Null Asp.Net
When I use it I’m doing it this way: HttpContext.Session.SetString("Nome", variavel); and to read the Session: HttpContext.Session.GetString("Nome") Have you checked if it gets any value and after…
-
0
votes2
answers48
viewsQ: Gif appear above the page
I have this img that appears a gif with effect of load: <img id="loading" src="~/images/loading.gif" alt="Updating ..." style="display: none;" /> $(document).ready(function () {…
-
0
votes1
answer119
viewsQ: Add multiple items in a single Session
That way I add an item to session var item = new FornecedorTipoFrete() { TipoFreteId = id, TipoFrete = new TipoFrete() { Descricao = tipofrete }, FornecedorId = (fornecedorID) };…
-
2
votes1
answer498
viewsQ: Identityuser Password Change - Aspnet
I have a registration form, which registers the user with email, and the password, but the need arose to change this password, and using the class Identity, she owns the field PasswordHash, and I…
-
6
votes3
answers201
viewsQ: Rounding up
I have these values, where contrato.Count = 63 and 63/50 = 1.26. I’d like you to round up 2, I’m doing it this way: decimal arrendondamento = contrato.Count / 50; var valorArredondado =…