Posts by Cyberlacs • 935 points
83 posts
-
0
votes2
answers40
viewsA: How to do JSON function return Monthly amount of liters fueled in one year period
I managed to develop a solution that served perfectly in my project, may not be correct but it worked and I am sharing. [HttpGet("GetTotalLitrosPorAno/{ano}")] public async…
-
0
votes2
answers40
viewsQ: How to do JSON function return Monthly amount of liters fueled in one year period
The function should return this Example: { "January": 500.00, "February": 514.00, ....} My table has the following fields. Km of supply Liters Abastecidos Valor Pago Date of supply I developed an…
-
1
votes0
answers185
viewsQ: How to insert an input type file with validation in a Blazor form (Editform)
I’m following the official documentation ASP.NET Core Blazor Forms and Validation at this link Blazor form with validation and I realized that some inputs are missing, being these: input…
-
1
votes1
answer149
viewsA: Onchange event in Input type="text" in a Blazor application
I got a result with the onkeyup event <input type="text" @bind-value="motorista" @bind-value:event="oninput" @onkeyup="PesquisaMotorista" /> @code { private string motorista = null; Veiculo[]…
-
2
votes1
answer149
viewsQ: Onchange event in Input type="text" in a Blazor application
I am developing an application in Blazor and managed to do an inputtext along with a button perform a search in an api created by scafolding with Entity Frameworks. Follow simple form below.…
-
1
votes1
answer26
viewsQ: How to make the Morris Chart pick up information from an Asp.Net Core api
I have the following api coming from a controller called Vehicles Controller. // GET: api/Veiculos [HttpGet] public async Task<ActionResult<IEnumerable<Veiculo>>> GetVeiculos() {…
-
0
votes2
answers214
viewsQ: How to perform a search with an interval between one and two dates in Asp.Net Core 2.2
How to perform research with interval between one or two dates in Asp.Net Core 2.2. I have the following form below containing Start Date and End Date @using (Html.BeginForm("Index",…
-
-1
votes2
answers625
viewsQ: How to manipulate Date attribute from a Python Json result
I have a Json output that I am using in a Google Sheets spreadsheet, and with this information I need to sort them by Date, so I need to get this date into the separate Date and Time spreadsheet…
-
0
votes0
answers114
viewsQ: Change format Date of a JSON statement of a Controller
I have a Controller that generates an output in Json format, below indicated. The date is returning this in Json 2019-07-22T16:00:04.8579075, I want you to return 22/07/2019 16:00 { ordemChegadaId:…
-
0
votes1
answer128
viewsQ: Tcpclient C# Windows Form how to close and open the same connection
I am developing a Windows Form C# application and I am using Tcpclient to carry out communication within my internal network, in some moments I need to close an existing connection and after a few…
-
1
votes1
answer55
viewsQ: While with Javascript grabbing images inside a folder
How to pick up images inside a javascript loop folder and insert along with the styling of Materialize Css Note that the images inside the folder are already all sequentially numbered. <div…
-
0
votes1
answer191
viewsQ: How to make the Login page become a standard route for an Asp.Net Core 2.2 application
The Login page is within the following folders Area - Identity - Pages - Account. How to make the Login Page become a standard route, this is when the user accesses the Asp.Net Core 2.2 application…
-
-1
votes2
answers695
viewsQ: Command to perform the Down of a migration
With the command add-migration created a migration, so is created a class with two functions. protected override void Up(MigrationBuilder migrationBuilder){...} protected override void…
-
0
votes1
answer362
viewsQ: How to customize Asp.Net Core 2.1 login screen
With the following service settings below I can login to Twitter, Hotmail, Facebook. Noting that my project at the time of creation enabled the individual login option services.AddAuthentication()…
-
0
votes1
answer34
viewsQ: How do I relocate the selected item from a Category List to the first position
In my application I have an area with several links of categories that is a Partialview. The categories below comes from the following statement of Categoriascontroller var categorias =…
-
0
votes1
answer60
viewsQ: Date value from Jsonresult function 18/11/2018 00:00:00 javascript gets "/Date(1542506400000)/"
I’m having trouble receiving a function JsonResult that returns me a certain date and this date I am unable to pass to the Date field of my screen for reasons of coming a value other than field…
-
0
votes1
answer25
viewsQ: Dropdownlist and Checkbox field triggering a javascript function
I have two Dropdownlist and Checkbox fields that are responsible for entering value into an inputtext How to make javascript code know the status sent true or false from the CHECKBOX to the…
-
1
votes1
answer795
viewsQ: How to enable CORS for web page access from a different domain, in Asp.Net MVC
I am developing an application that is communicating with Secure Pag Checkout through the Web Server url https://ws.sandbox.pagseguro.uol.com.br that is working perfectly, after making the payment…
-
0
votes0
answers143
viewsQ: Set monetary value field correctly in Asp.Net MVC
I am having problems with monetary value in my Asp.Net MVC application and would like to know how to set up In class [Display(Name = "Valor Produto")] [Required(ErrorMessage = "O campo {0} é…
-
0
votes0
answers92
viewsQ: How You Configure Checkboxes Materialize Css in Asp.Net MVC Web Application
How do I set up Checkboxes in the Asp.Net MVC Razor Since in the documentation we have the following configuration Materialize for checkboxes <p> <label> <input type="checkbox" />…
-
0
votes1
answer261
viewsQ: How to Make Slider Materializecss Resize Height Accordingly to Devices
I would like to make the slider of Materialize Css that has by default 400px height in all responsive sizes. I would like this time to have its height changed according to the device. I am using the…
-
1
votes1
answer59
viewsQ: How to get the Controller to pick up the "Linktext string" text from @Html.Actionlink
In my application arose the need to make a same Controller call Sort has the Reclassification function, with this, I want the ControllerClassificar get the string LinkText of @Html.ActionLink to be…
-
0
votes1
answer103
viewsQ: How to make Asp.Net MVC application stop logging out, and stay logged in direct?
I developed an application in Asp.Net MVC and this application when the login is done and spends time without moving, when I will register, the system asks to log in again, I would like to know how…
-
2
votes2
answers503
viewsQ: Value of a text variable to select a Select item in javascript
I have a variable var text that receives predetermined values, and I want the value to select the field item select example: var texto = 'Volvo'; <select> <option…
-
0
votes3
answers2176
viewsA: Question how to increase input size according to div size using bootstrap
From what I can see, you’re using Asp.Net MVC and I had the same problem, so the solution is pretty simple. When we create an Asp.Net MVC project a file is created in the Content folder called…
-
1
votes1
answer28
viewsQ: Requests between Web and PLC Siemens small delay
This Jquery function is controlled when a Switch from my page is made a change $("#statusM1").change(function () { if (statusM1 == 0) { url = "index.html"; name = '"motor"'; val = 1; sdata =…
-
0
votes1
answer1562
viewsQ: How to make a single button on and off and click send value in URL
In the code below each I have two Forms one to send the value 1 and one to send 0 and both Forms send this value via GET When I send the GET PUMP STATUS N°1::="motor": receives the return of the PLC…
-
0
votes1
answer71
viewsQ: Javascript problems in ASP.Net MVC applications - Minification failed
I just upgraded my system on the server, and so I went to do the first tests and this agreeing the following errors in my Javascript scripts /* Minification failed. Returning unminified contents.…
-
0
votes1
answer27
viewsA: Only one column of the table responsible for Drag and Drop - Touch Punch
Solution to my own question. I had to look and understand and so I am contributing to the community, and as amazing as it seems after learning this command, in the very forum stackoverflow but in…
-
0
votes1
answer27
viewsQ: Only one column of the table responsible for Drag and Drop - Touch Punch
How to make only one table column responsible for performing the table row drag and drop using the jQuery UI Touch Punch event <script…
-
1
votes0
answers61
viewsQ: Table with drag and drop event does not work in mobile
I have a page that user have the freedom to sort table, and this drag and drop event on computer works perfectly, but on tablets, mobiles does not work, what to do for the perfect workings of this…
-
1
votes0
answers35
viewsQ: Perform sorting by a given field of a given table
I have the following syntax The instruction below perform sorting by field Lot Number table Lot var lvmLotes = db.Lotes.Tolist(). Where(x => x.DataAbate.Date == Search). Orderby(x =>…
-
-1
votes1
answer29
viewsA: Error trying to update data in Asp.Net MVC - db. Entry(Lada) application. State = Entitystate.Modified
I managed to solve, and so I share with the community sequenciaViewModel.Lado_A = new Lado { LadoId = item.LadoId, Nome = form["Lado_A.Nome"].ToString(), CamaraId =…
-
1
votes1
answer29
viewsQ: Error trying to update data in Asp.Net MVC - db. Entry(Lada) application. State = Entitystate.Modified
I am having problems at the time of editing, more specifically in the lines below, db. Entry(Lada). State = Entitystate.Modified; db Savechanges.(); the update that precedes the lines above, occurs…
-
1
votes0
answers36
viewsQ: Registration with repeated fields, how to do?
I have a register in the system that I am developing that will have repeated fields, I would like to get help in this implementation. This screen is called Sequence which has the following fields…
-
0
votes1
answer56
viewsQ: Definition Isfirstrowascolunmnames not existing in Iexceldatareader of Exceldatareader reference
Using Visual Studio 2017, I installed the reference packages through Nuget Exceldatareader Ecxeldatareader.Dataset version 3.4.0 I am following a tutorial on how to open XLS file and is giving error…
-
0
votes2
answers228
viewsQ: Asp.Net MVC - Selecting item from a Dropdownlist reflects the same selection in another Dropdownlist that contains the same selection items
I have 02 Dropdownlist fields that have the same items to be selected, this is: Camera 1 Camera 2 Camera 3 Camera 4 Camera 5 Camera 6 Summarizing in great part of the registrations that will be…
-
0
votes0
answers385
viewsQ: How to make Table with two foreach close <tr> </tr> Asp.Net MVC
I need to make a table that for each row I have the information as shown below See that in Lot 1 until City the data does not repeat at each foreach and only from the column Species the data…
-
0
votes1
answer28
viewsQ: How to make one or more field within the screen run javascript function
I have a javascript function that should be executed when any of the two fields are made any kind of change. At first only the field #Dating when a change is performed executes the script but I want…
-
0
votes1
answer49
viewsQ: How to create List of a class within another class and not be mapped in Entity Frameworks
I have a class called Chamber [Table("Camara")] public class Camara { [Key] public int CamaraId { get; set; } [Display(Name = "Nome")] [Required(ErrorMessage = "O Campo {0} é requirido!")]…
-
1
votes2
answers925
viewsQ: Current Date in @Html.Editorfor() Asp.Net MVC
Friend want the field come to standard already filled without the need of the user to put the date How to put current date in the default field @Html.EditorFor(model => model.DataAbate, new {…
asp.net-mvcasked Cyberlacs 935 -
0
votes2
answers31
viewsQ: Jsonresult values are received by javascript but fields do not receive value
Javascript function receives values but fields are not receiving values. Function of the Controller public JsonResult GetSequencia(DateTime dataAbate) { db.Configuration.ProxyCreationEnabled =…
-
1
votes1
answer450
viewsQ: Split string with comma as delimiting in Arduino’s Serial.read()
I’m developing an application in C# with Visual Studio that sends a character to the Arduino only now I want to send a string with this structure character, number as in the example below: A,0 or…
-
1
votes1
answer80
viewsQ: Incompatibility problems with BLE Plugin with Xamarin project
I installed a plugin in my application Xamarin Forms and I’m having incompatibility problems: BLE Plugin 1.3.0 was Restored using . Netframework v4.6.1 Instead of the project target framework .…
-
2
votes1
answer108
viewsQ: Upload videos Datatype Asp.Net MVC
I want to put a Video Upload field on my Asp.Net MVC system and I did not find anything related to videos on Datatype. I found various datatype such as [DataType(DataType.ImageUrl)]…
-
0
votes1
answer216
viewsA: How to get back Json from the site Hgbrasil Weather in my application Xamarin
There are no problems with the above code, but the problem is with the site api https://hgbrasil.com I don’t know what it is. I would very much like the https://hgbrasil.com work because I wouldn’t…
-
1
votes1
answer216
viewsQ: How to get back Json from the site Hgbrasil Weather in my application Xamarin
How do I get the values provided in the Json format in my Xamarin application. The code below is not returning anything. public class MainActivity : Activity { ProgressDialog dialog; TextView txtv1;…
-
0
votes2
answers63
viewsQ: How to center 02 Textview of Videoview
I have 02 Textview and I want to put them in the center of a Videoview where a text is on top of each other. <?xml version="1.0" encoding="utf-8"?> <LinearLayout…
-
1
votes1
answer558
viewsQ: List of all files that are within the Resource.Raw folder
How to get all the files that are in the Resource folder and move to a list. I am doing it manually, but now I need to take it dynamically and move to a list all the files that are in the…
-
0
votes1
answer70
viewsQ: UWP application run sequence of videos in Mediaelement coming from a List<string>
I’m using the Media Element in an application UWP to run a sequence of videos, as I do for when one video ends the other runs in sequence? In the code below when the first video of…