Posts by Gleison França • 560 points
30 posts
-
1
votes3
answers135
viewsQ: MVC: parameter in URL is not being passed to controller
I am running the Action below, but the parameter "Artigooucategoria" is not being passed to the Controller. I am working with Asp.net core 2.0. public async Task<IActionResult> Buscar(string…
-
0
votes0
answers102
viewsQ: Parameter ignored in EF 5.0 Connection Timeout
My application is showing an error of TimeOut when I perform operations that require more processing time. I’m using the EntityFramework 5.0 and set up the Connection Timeout=480 to do tests, but it…
-
0
votes0
answers106
viewsQ: Error copying database in SQL Server 2008
I am trying to make a copy of a database to the same server but am encountering error below: Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors…
sql-server-2008asked Gleison França 560 -
-2
votes1
answer477
viewsQ: Error when entering monetary value into bank
I am trying to save the value 137421,20 in a table of Sqlserver with a field of type Numeric(8,2). However I get an error with the description: "Parameter value 137421,20 is out of range." I’m…
-
1
votes1
answer233
viewsQ: Reportviewer does not load in Internet Explorer 11
I’m trying to open a report with the ReportViewer in the Internet Explorer 11 And the same doesn’t open at all. This occurs with the application published on an application server, but when I run…
-
2
votes1
answer466
viewsQ: Remove Report Viewer Edge
I have tried several ways to remove this border that appears in the Viewer report, and I could not at all. Below is part of my code with the properties I added to remove the border:…
-
1
votes2
answers78
viewsQ: Convert SQL to LINQ C#
how do I convert the last line of this SQL to LINQ? SELECT* FROM ACOMPANHAMENTO A, PRESOS_ACOMPANHAMENTO PA, PRESOSS P WHERE P.ID_PRESOS = 300 AND PA.ID_PRESOS = P.ID_PRESOS AND A.ID_Acomp =…
-
0
votes1
answer739
viewsQ: LINQ Return from the list is with all the repeated records
I’m having problems performing a select (using LINQ) in a View in SQL Server 2012. The values stored in the bank are as below: ID_Acomp ID_Pessoa Nome Data 26 300 MONTEIRO 01-01-2016 27 300 MONTEIRO…
-
0
votes0
answers206
viewsQ: Error compiling App with Xamarin
I’m having some problems compiling my project on Xamarin no VS2015. Error java.lang.Unsupportedclassversionerror: com/android/dx/command/Main : Unsupported major.minor version 52.0 Navegacaointent…
-
1
votes0
answers333
viewsQ: List with repeated records via Linq
I am trying to perform a simple query with LINQ, and the code below is returning me repeated records in the first 5 lines of the list. var teste = (from p in db.VW_PAGAMENTO_RECEBIDO where…
-
1
votes2
answers671
viewsQ: Submit DIV over another DIV
I am using a DIV with the message "processing" and opaque background, every time a request occurs (user iteration when clicking a button). However, this screen is also presented when I have an open…
-
0
votes1
answer279
viewsQ: How do I check the browser type, version and if support Javascript?
I need to identify the browser, the browser version and if it is enabled to run javascript. In previous versions of Asp.Net I checked Global.asax using the command Request.Browser.JavaScriptbut this…
-
0
votes1
answer333
viewsQ: How to disable Jquery controls when loading the page
Include the JS Code below to disable the fields when checkbox is checked. However, when I load the page with it marked the fields need to be disabled, and the command only disables them when the…
jqueryasked Gleison França 560 -
1
votes2
answers193
viewsQ: Dropdownlistfor has no selected value
Dropdownlistfor shows no selected value. public static List<SelectListItem> getMesesPagamento() { List<SelectListItem> listMeses = new List<SelectListItem>(); for (byte i = 1; i…
-
2
votes1
answer141
viewsQ: create custom mask
How do I create a custom mask for a particular field? The mask will be in the following format: ____OB_____ (4 numbers + OB + 5 numbers) The image below shows the example I want to follow:…
-
2
votes1
answer87
viewsQ: Convert SQL script to Linq
I need to convert the SQL script below to Linq. SELECT [ID_Pessoa], [ID_ArquivoPagamento], SUM([Peculio_Valor]) AS 'Peculio_Valor' FROM [VW_PESSOA] WHERE [ID_Pessoa] = @ID_Pessoa AND…
-
3
votes2
answers1336
viewsQ: Remove Time in Datetime field
Dear friends, I need to present only the date in a Textboxfor field. I use this HTML Control because I use a Javascript mask that formats the field value at the time of the date input.…
-
10
votes3
answers16306
viewsQ: Validate Credit Card Number
How do I validate credit card numbers? I will not integrate with card operator, I just need to validate the number, as with the validation with CPF.
-
1
votes1
answer220
viewsA: Image stored in the bank is not displayed in the View
I am answering my own question why I was able to solve the problem. This way others can also get help. I changed the way to upload the image to the bank: if (Request.Files.Count == 1) { var size =…
-
2
votes1
answer220
viewsQ: Image stored in the bank is not displayed in the View
I’m trying to display an image that’s stored in the database. When the Photo (Image) field of the table is null, I display a default image that is stored in the directory. The problem is that the…
-
0
votes1
answer39
viewsQ: Action is not receiving the value of the parameter
In the code below I am trying to pass a parameter to an Action. The action is being called and the value of the parameter is also being assigned to Url. But Action takes Null, not the value of the…
-
2
votes0
answers37
viewsQ: How to run a method daily automatically
How can I create an automatic routine in my application to run a particular method every day at 08:00 am in the morning, with the aim of updating a field in a table of my database?
-
1
votes3
answers2001
viewsQ: Error trying to send email
I am trying to send emails (using my Hotmail account) and am encountering the error below: A connection attempt failed because the connected component does not replied r ncorretamente after a period…
-
3
votes1
answer1326
viewsQ: How to locate an image without informing the absolute path?
How to locate an image without entering the absolute path? Image img = System.Drawing.Image.FromFile("~/Content/images/SemFoto.jpg"); I tried several ways and could not capture the image without…
-
2
votes1
answer1235
viewsQ: how to select Count using Linq C#
I need to convert this chunk of SQL code to Linq C#. I’ve been able to convert virtually every code. SELECT COUNT(Q.ID_QUALIFICACAO) AS CONHEC_ESPECIFICO FROM QUALIFICACAO Q INNER JOIN ATENDIMENTO A…
-
1
votes1
answer472
viewsQ: Format mask for Timestamp attribute
I need to display the value of the TIME attribute only HH:mm (hour and minutes). By including the following masks an error occurs: The input character string was not in an incorrect format. I tried…
-
0
votes1
answer73
viewsQ: Viewmodel parameter being passed as null
I am trying to validate my login form, but the "Modelstate.Isvalid" function is not performing the validation. According to the image above, when executing Action, the "Effectwindmodel" parameter is…
-
0
votes0
answers149
viewsQ: Error loading cascading dropdownlist
I am trying to load a dropdownlist cities according to the selected state and am encountering an error. I managed to carry out the operation in a template I downloaded from the internet, but I’m not…
-
3
votes2
answers422
viewsQ: Create dynamic news site optimized for Google
I want to create pages on a specific news site and I thought initially to store in a database the news information (title, subject, news text, etc). As soon as my page noticia.aspx was accessed,…
-
3
votes1
answer887
viewsQ: Sending via Formcollection of monetary values
I need to send to a method in Controller, the values filled in the column Payment_value as shown below: By clicking the green button, send via post, the values of the list below that generated the…