Posts by Brayan • 695 points
48 posts
-
0
votes1
answer43
viewsQ: getters and setters do not work with Httpget
Good afternoon guys, I have the following code: [HttpGet] public JsonResult ObterGridParceirosComPaginacao(PaginacaoVueTableViewModel filtro) { Resultado resultado = new Resultado(); var viewModel =…
-
2
votes1
answer82
viewsQ: Jquery-Querybuilder does not work inside Vuejs
Good morning, I’m trying to use Jquery’s Querybuilder along with Vuejs, but I’m getting the following error: Below follows the code that is giving this error: this.$refs.builder.queryBuilder({…
-
0
votes0
answers57
viewsQ: xls created through C#, but does not add values
I have a method that generates excel(. xls), but I have a problem: excel is being generated perfectly, but when I try to add up the values of cells nothing happens, it only adds up if I open cell by…
-
1
votes2
answers69
viewsQ: Lock button until Function is completed Angularjs
I’m needing a way to lock a button until the function of the ng-click be completed, to prevent the user from clicking again on the button, thinking that nothing happened or something like. Is there…
-
0
votes1
answer31
viewsQ: ng-repeat does not display empty values
I have the following code: <input type="search" class="form-control" placeholder="Busca por motivo" ng-model="search.motivo" > <tr ng-repeat="item in vm.listaDesbloqueio |…
-
1
votes1
answer141
viewsQ: Automapper and List Problems
Guys, I have the following code: List<NFE_CABECALHOEntity> lista = new List<NFE_CABECALHOEntity>(); Mapper.Initialize(cfg => { cfg.CreateMap<NFE_CABECALHO,…
-
-1
votes1
answer170
viewsQ: Check certificate X509certificate2
Is there any way I can verify that the A3 certificate is connected to the computer? Some kind of validation for example. I work with an application that makes use of A3 certificate, but I do not do…
-
2
votes1
answer251
viewsQ: Round up minutes C#
Guys, I have a problem that is, I need to round up the minutes of an hour, for example: if the time is 12:28 I need it to turn 12:30, I always need to round it up, does anyone know how to fix this?…
-
0
votes1
answer59
viewsQ: Problems with required no select in Angularjs
Staff I have the following code: <div class="form-group col-lg-6 col-xs-12 " style=" margin-bottom: 0px;"> <label style="padding-top: 4px;margin-bottom: 3px;">Grupo</label>…
-
0
votes1
answer34
viewsQ: Get CCO from C#email
I have a system that checks emails, and I have the following code where it searches the recipient or the field "with copy": if (client.GetMessage(i).Headers.To != null) { var msgTemp =…
-
-1
votes1
answer492
viewsQ: Problems with phpMyAdmin Uolhost
I have a site on Uol host and a database too, the site communicates perfectly with mysql, but I have a desktop software that I need to communicate with mysql as well, Is there any configuration I…
-
0
votes1
answer40
viewsQ: Open.CV Error Save File
Good morning guys, I have the following code: var faceImage = new Image<Gray, byte>(new Bitmap(bm)); imagensFace[i] = faceImage.Resize(100, 100, Inter.Cubic); faceLabels[i] = todasFaces[i].ID;…
-
0
votes1
answer256
viewsQ: Disable Filter Case Sensitive in Angular
Guys I have a field on the page that serves to filter a table, but the filter is differentiating capital letters from minuscule letters, and I wish that didn’t happen, follow the code: <tr…
-
0
votes1
answer729
viewsQ: Entity delete table and your relationships
Is there any way to delete a table record and all your relationships at once? because I currently delete each related record before deleting the main record, and it takes a long time, for example I…
-
1
votes1
answer256
viewsQ: Disable Lazy Loading for a specific query
I have a problem of slowness at the time of bringing the data. I have in the table 16 thousand records that are taking about 6 seconds to be brought from the bank. I noticed that when bringing these…
-
1
votes3
answers335
viewsQ: Dynamic path C#
I am in search of a way to leave the path of a file inside my project in a dynamic way, currently this so: string arquivoImagem =…
-
3
votes2
answers2116
viewsQ: Format Angularjs date
I have a problem to format the time that appears in the View, it is coming in the following way: However, I would like it to be displayed in the "hh:mm:ss" format. The html code is as follows::…
-
2
votes1
answer1238
viewsQ: Angularjs Filter various table fields
Personal I have a table where you can filter your data using filter, where I pass the filter information through an input: <tr ng-dblclick="openUpdateCadProduto(produto)" ng-doubleclick…
-
2
votes2
answers3157
viewsQ: Start Windows Forms program in the background
I developed a monitoring application using Windows Forms, but it has no need to have anything visual at the moment, so I would like when running it, it to be executed in the background (I would like…
-
2
votes3
answers620
viewsQ: Check when global variable changes
I have the following problem, I have a global variable public static bool HouveAlteracaoBD { get; set; } and I need to monitor it when there is any change in its value, because I intend to follow…
-
0
votes0
answers207
viewsQ: Problems when deserializing XML
I have the following code: public T LerXml<T>(string pArquivoXML) { byte[] xmlBytes = Encoding.UTF8.GetBytes(pArquivoXML); Stream xmlStream = new MemoryStream(xmlBytes); using (var stream =…
-
0
votes0
answers71
viewsQ: Stream without C#content
Good afternoon guys I have the following code: Stream retorno = new MemoryStream(); using (var stream = new System.IO.StreamWriter(System.IO.File.Open("c:\\Temp\\file2.xml", FileMode.OpenOrCreate,…
-
1
votes0
answers33
viewsQ: Streamwriter C#
I have the following code: using (var stream = new System.IO.StreamWriter(System.IO.File.Open("c:\\file.xml", FileMode.OpenOrCreate, FileAccess.ReadWrite))) { infoSerializer.Serialize(stream,…
-
5
votes1
answer574
viewsQ: How does the Type.Invokemember method work?
I came across this method in a code and was curious how it works because I’ve seen some applications running in C# that use this method, and when searching for the method in Google, I found no clear…
-
0
votes0
answers42
viewsQ: Reference Factory in Angular Controller
Good evening, how do I instantiate Factory in Controller? I have the following error: var app = angular.module('App', []); app.controller('LoginCtrl', function ($scope, $http, LoginFactory) {... I…
-
0
votes2
answers95
views -
2
votes2
answers95
views -
3
votes1
answer268
viewsQ: Move image to HTML via Viewbag
I have an image in an array of bytes, and I need to insert it in view. Is there any way I can do this through ViewBag?
-
2
votes1
answer312
viewsQ: Receive Token through Webrequest?
Guys is there any way I can generate a token through a Webrequest? Because every time I use the Google Drive function I need to open the authentication page only to generate the Access Token, there…
-
1
votes1
answer743
viewsQ: Upload to Drive
Personal have the following code, which opens the google consent screen, where the user authorization is made and generated an authentication token: public async Task<ActionResult>…
-
1
votes0
answers61
viewsQ: Start Async function
Good morning guys, I don’t have much knowledge about async, and maybe someone could help me with this: public async Task<ActionResult> IndexAsync(CancellationToken cancellationToken) { var…
-
0
votes1
answer90
viewsQ: Google Consent screen does not open
I made an application that has the function of backing up to Google Drive, but it does not work when I put in some server, works only in localhost. What happens is that it doesn’t open the consent…
-
1
votes1
answer428
viewsQ: Save Token to User Machine
I made an integration with the GoogleDrive and by doing all the authorization on the consent screen, it creates a token in the appdata user, however I put this application in Azure in a VM. Only…
-
0
votes0
answers11
viewsQ: Oauth in Azure does not open
I’m working with Google Drive API and localhost the Consent screen - the one you authorize the application to make changes and view your data - normally opens in a new browser tab. But when I move…
-
2
votes2
answers279
viewsQ: Download PDF file by link in e-mail
I developed a function that passing the Item id it generates a PDF file. [HttpPut] public void GerarPDF(long idItem) { ....Função } It already works perfectly, I did the test through the Google…
-
0
votes1
answer86
viewsQ: Make variable wait function to be generated
I have the following code: XmlParaApi = xml; that passes a string variable (xml) to a string global variable (Xmlparaapi). Until then all this code is in an Api, the Gora my problem is with the code…
-
0
votes2
answers306
viewsQ: Split String Html
I have an HTML with the following code: <div class="page"> ...Conteúdo1 </div> <div class="page"> ...Conteúdo2 </div> <div class="page"> ...Conteúdo3 </div> the…
-
4
votes2
answers662
viewsQ: Convert HTML as image
I own a string with the page’s HTML, is there any way to save it as an image? Render the whole page as an image, and if possible, store it in an MemoryStream.
-
3
votes1
answer427
viewsQ: Format String after it is converted from HTML
I made a code that turns all HTML into a String, however, when doing this the code is coming like this: <div class=\"page\">\r\n<div class=\"bloco\">\r\n <table id=\"canhoto\">\r\n…
-
1
votes1
answer108
viewsQ: Take CSS link with Regex
Good morning guys, when pulling the html of the entire page in string it also brings some reference links: <link href="~/Content/item/item.min.css" rel="stylesheet" /> I already removed the…
-
1
votes0
answers129
viewsQ: iTextSharp PDF coming blank
Good afternoon guys, I have the following code: public void GerarPDF(long id) { string HTMLemString = RenderizaHtmlComoString("~/Views/item/item.cshtml", id); var regex = new…
-
1
votes2
answers1318
viewsQ: Make one method wait for the end of the other
Good morning, you guys, I am with the following doubt, when clicking a button my program makes to execute 2 methods simultaneously, method of sending email, and method of generating the pdf, it…
-
0
votes1
answer90
viewsQ: Angular post for ASP.MVC
I need to do a POST after a button click, so that this POST activates a method in a MVC controller, was testing as follows: [HttpPost] public void GerarPDF() { string teste = "teste"; } The name of…
-
2
votes1
answer262
viewsQ: Controllercontext Null
I have the following code: PDFController Ctrl = new PDFController(); byte[] ArquivoPDF = Ctrl.GerarPDF(xml); This part above is in the Webapi, where I create a new instance of the Controller to use…
-
1
votes1
answer82
viewsQ: Download View instead of displaying it
there is some way that instead of me returning a view and displaying it on the screen for the user, I return it but instead of displaying it I save the file . html on the computer? The code is as…
-
0
votes2
answers71
viewsA: jQuery Generic Autocomplete Error 404
public class AutoCompletaNCM : IRouteHandler { public IHttpHandler GetHttpHandler(RequestContext requestContext) { return new ListaAuto(); } private class ListaAuto : IHttpHandler { public bool…
-
0
votes2
answers71
viewsQ: jQuery Generic Autocomplete Error 404
I’m making a input with Autocomplete function only that when typing it returns in the console with error 404. Follow the code: $(document).ready(function () { $("#ListaNCM").autocomplete({ source:…
-
1
votes1
answer430
viewsQ: Spend Tempdata
Good afternoon guys I’m having the following problem, I need to pass a variable to another controller and I’m trying to do this by Tempdata, follow the code: var user = User.Identity.GetUserId();…