Posts by Harry • 3,805 points
339 posts
-
0
votes1
answer26
viewsA: Calling other data from an entity
You have this example as a basis: public async Task<JsonResult> SelecionarPorProjeto(int id) { copaDBEntities entity = new copaDBEntities(); var getCopaList = entity.copa.ToList(); //Retorna o…
-
1
votes0
answers100
viewsQ: How to validate a Case result
How to validate a Case result I’m taking the interval between two dates in days, I want to validate if the result and more than 120 days, has a better way than I’m doing? DECLARE @DataInicioVigencia…
-
1
votes1
answer363
viewsA: Query with Procedure, passing table name as parameter in sql server
I found the solution! DECLARE @NomeTabela VARCHAR(50) = 'Region'; DECLARE @NomeIdTabela VARCHAR(50) = 'RegionID'; DECLARE @IdDaTabela INT = 1; select * from Region execute('SELECT '+ @NomeIdTabela…
-
1
votes1
answer363
viewsQ: Query with Procedure, passing table name as parameter in sql server
I would like to create a precedent where I will pass the table name and Table id as parameters, how could I do that? I have my example of how I would like to do DECLARE @NomeTabela VARCHAR(50) =…
-
2
votes1
answer40
viewsQ: Doubt generating entity from Cs file code in edmx C#
In the version of ".Net Framework 4" I have a project that when using . edmx did the automatic generation of Edmschema where in my project I did so: 1 - ADO - (Project Class Library) 2 - Archive .…
-
3
votes1
answer464
viewsQ: Excel file reading with more than 1 sheet in the same file using C#
In this code I can read all the data of the spreadsheet Plan1 that has the name "Data" of the file ".xls", more if I have more spreadsheet in the same file, as I can read?. Code for reading: static…
-
0
votes2
answers1363
viewsA: How to change the version of Cordova in Ionic?
To use an earlier version you can do so. If you are in the latest version of Ionic: Ionic start myApp2 --v2 Ionic start myApp3 --v3 So after the installation you have the option to add the…
-
0
votes1
answer32
viewsA: How to validate the return of a value using Jquery in a component that does not support Clientidmode="Static" in Asp.net?
The most practical way when you can’t use Clientidmode="Static" and take it by name. would look like this: var menuatual =…
-
0
votes1
answer32
viewsQ: How to validate the return of a value using Jquery in a component that does not support Clientidmode="Static" in Asp.net?
When using Aspnet Webform, ID components are changed dynamically, but this component cannot use Clientidmode="Static" to keep the same ID. example: <asp:HiddenField runat="server"…
-
1
votes1
answer85
viewsQ: At runtime, does the Form ID Asp.net webforms change?
At runtime, the Form ID Asp.net webforms changes, see that I have on my machine the component ID. Local example: <asp:HiddenField runat="server" ID="MenuSelecionado" value="processo"/> After…
-
-4
votes1
answer218
viewsQ: Widget with weather forecast, does not appear on the page?
I am using this site to generate the code to add on the site, after having done the requested process, nothing appears, does not generate error, anyone knows what could be wrong? Thanks…
javascriptasked Harry 3,805 -
0
votes1
answer33
viewsQ: How do you save the contents of a Nav-tabs using localstore?
I have an example here: When I submit the form, I want to save the tab ID and ID of the div that is currently selected to not need to bring it in the Hidden type input <script…
-
0
votes1
answer27
viewsQ: Doubt with validation of jquery content;
I have a javascript that should run only when the content value of Edit is different from null or empty, but the same is always running. <script type="text/javascript"> function…
-
0
votes1
answer49
viewsQ: How to add a class in the form after page return
I have an input of type Hidden that takes the name of the menu that was selected that was returning from the application, it can receive (tempos, shutdown, values) After the return of the post, I…
-
1
votes0
answers76
viewsQ: How to call a precedent using an oracle out-type course with C#
I’m taking a test to figure out how to make a call from a trial that has this kind of course In the past I have this: create or replace PROCEDURE "PTESTE" ( pcd_servicoagendado integer, ptipo…
-
-1
votes2
answers161
viewsQ: Change the "Web Reference URL" of the Webservice added by add web
I wonder if it would be possible and how to make this change by taking the web address.config…
-
0
votes1
answer471
viewsQ: How to select the contents of a column coming from a Dataset C#
Is there a better way to search for the content of a specific column? I have information that repeats in a "template" column I want to retrieves this content only 1 time. I’m doing it like this, but…
-
0
votes1
answer252
viewsQ: Disable option if not with Javascript enabled?
I am using a tag that checks if Javascript is enabled, if it is not, I would like an option on the screen to be invisible. How could I call a function if that happens? thanks <noscript> Para…
javascriptasked Harry 3,805 -
0
votes1
answer189
viewsQ: How to Replace XML C#
I have a method that receives some parameters, I would like to replace some xml information, at the moment I can only remove and add new information private void CriacaoDoConfirmarLogin(string…
-
0
votes1
answer24
viewsQ: Create new file by discarding current XML lines C#
I have an XML file like this: <?xml version="1.0" encoding="UTF-8"?> <Message> <MessageId> <ServiceId>SolicitaLogon</ServiceId> <Version>1.0</Version>…
-
0
votes1
answer945
viewsQ: java.lang.Nullpointerexception error when sending data to a web service
I have a webservice where I’m sending some data. The return of the service is returning me this message below, in the integration manual, says it would be an internal error, wanted to understand if…
-
1
votes0
answers53
viewsQ: Doubt in the return treatment Ajax, receive data return from an API
I have an Asp.net web.api API I am making a method that sends the login information, I am having difficulty to do the treatment of the return, even sending wrong information is passing as certain.…
-
1
votes0
answers26
viewsQ: Doubt with htaccess (location x hosting)
Hello, I’m doing a project and was adding it online to make a test, locally everything works, I have my ".htaccess" so: Options All -Indexes RewriteEngine On RewriteRule ^([-a-zA-Z0-9]+)$…
-
-1
votes2
answers198
viewsQ: How to walk a C#class?
I have the DeserializeObject that fills in an order class and items, on the items I need to go through this class to record the data, the way I’m doing is zeroing the records, how I could read the…
-
1
votes1
answer162
viewsQ: How to read class data
I have an api that when receiving the data fills a class, I want to do a while in this class tb_dados_api and tb_carrinho, take the data to record in the database, how could I do that? Thanks Here I…
-
2
votes1
answer38
viewsQ: Visual Studio Error 2015 Update 3 cannot remove breakpoint
In my project I have a solid breakpoint in Visual Studio that I can’t remove. I can add other breakpoints. Some removed, but some not. Does anyone know how to fix this?…
-
0
votes2
answers438
viewsQ: Api with Item Array does not receive the posted data
I have an Api that receives the posted data as it shows the image, it turns out the data is coming empty, I appreciate the help.…
-
1
votes2
answers384
viewsQ: Api that receives an Item Array
I have the following situation, I need to create an API that will receive the content below: { "numeroCarrinho": 122865, "itens": { "PA00058": 1, "MA00068": 1, "PA00004": 1 }, "cep": "41706670",…
-
1
votes1
answer1370
viewsQ: How to read a JSON file using C#?
I have my code that reads an external API and returns me the information, I would like to read this information or add them in a class: I’m using Newtonsoft.Json; This the Json: { "success": true,…
-
1
votes2
answers3016
viewsQ: Doubt with Webrequest get method passing token
I’m trying to read the data of an order, where I send the information via get, Error: Unable to send content with this verb type. public string ConsultaPedido(string urlpedido, string NumeroPedido)…
-
1
votes1
answer879
viewsA: Httpwebrequest Asp.net returning 400 error
The way to do it would be: public string ConsultaUsuario(string url) { var request = (HttpWebRequest)WebRequest.Create(url); request.ContentType = "application/json"; request.Method = "POST"; using…
-
0
votes1
answer879
viewsQ: Httpwebrequest Asp.net returning 400 error
I’m making an appointment at a api to receive a token access, using the Postman, the options Body and Raw, passing the access data in the body, everything works fine, but in my example I have the…
-
0
votes0
answers55
viewsQ: Doubt with Image fields in Postgres
I used the sql below to view the size of all tables of the database, it return me a total of 98 MB, more as the database has images that are recorded as binary and the same are not in a table, I…
-
1
votes1
answer596
viewsQ: Doubt with calculation of the profit margin between values
I have an sql query where I am showing the cost value and sales value of the product, I would like to show the profit margin between cost and sales values, for the quantity of items sold select…
-
1
votes2
answers46
viewsQ: Doubt with data return Asp.net API
I have a method that makes the record insertion, after having inserted precise return the id that was recorded, more is not returning the information. I appreciate the help. [HttpGet]…
asp.net-mvcasked Harry 3,805 -
1
votes0
answers15
viewsQ: Doubt with Redirecttoaction
Is it possible to redirect when the site uses an anchor? I have this situation, where my anchor has the contact name, wanted to redirect to this part of the code. public ActionResult email() {…
asp.net-mvcasked Harry 3,805 -
1
votes2
answers268
viewsQ: Doubt with Jquery Load
I have a menu that I will use on all pages, so I want to upload the content: I’m doing like this: <head> <meta charset="utf-8"> <!-- This file has been downloaded from Bootsnipp.com.…
-
0
votes0
answers444
viewsQ: Folder ".m2" for the file Settings.xml in Windows Server 2008?
I have a Java EE application with Wildfly-10.1.0.Final server that uses this folder to add the file settings.xml , but inside Windows server 2008 I don’t have this folder in user, how could I do…
-
1
votes3
answers91
viewsQ: Registration error "Does not recognize the property"
I’m studying Java EE and I came across a mistake, if anyone knows the answer I appreciate it. I have my form: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html"…
-
0
votes1
answer13
viewsQ: Error in javaEE context-root using Jboss
I have an error project, I have error messages in the configuration files: 404 - Not Found jboos-web.xml web xml.…
-
2
votes1
answer1063
viewsQ: Doubt error "Unable to build Hibernate Sessionfactory" Java
I received the sources and after doing the server settings, database etc, I have this problem in the compilation. I would appreciate it if someone could indicate a direction in the solution.…
-
0
votes1
answer812
viewsA: Error in wildfly postgres configuration
The problem was in the location of the drive folder name="org.postgresql" According to the configuration the correct path would be: C: wildfly-10.1.0.Final modules system layers base org postgres…
-
0
votes1
answer812
viewsQ: Error in wildfly postgres configuration
I performed the postgresql configuration: C: wildfly-10.1.0.Final modules system layers base with postgresql main I added the files: module.xml postgresql-9.4.1208.jre7. jar OBS: The bank has…
-
0
votes0
answers314
viewsQ: Does Build Spring Boot take long to compile?
I am doing an example using Java with Spring, I am using Intellij IDEA, it takes a long time to compile, I am using Tomcat, show a lot of message on the server, have how to configure to be faster?…
-
0
votes3
answers290
viewsQ: Doubt with Insert in Postgres Bank
I have an error message, tried several options of not getting a solution. Is there any configuration that is missing?…
-
1
votes2
answers371
viewsQ: Sending email C# The remote name could not be resolved
I’m testing the email sending of the application for a password recovery option,I tested several ways, including email from another domain and hosting and everything works well, tested with gmail…
-
3
votes2
answers95
viewsQ: Recovers data with Request.Querystring
I have a Partial that loads the data: @using (Html.BeginForm("PesquisarEventoPorLocal", "CadastroEvento", FormMethod.Get)) { <div class="row"> <div class="col-sm-12 col-md-12"> <div…
-
1
votes1
answer1692
viewsQ: Doubt with Theme-color, change the color of the browser
After accessing the mobile phone, I did not notice that he changed the color of the browser, nothing changed, using safari on Ios or Android, did anything missing? I made the inclusion in my head :…
-
1
votes0
answers66
viewsQ: Type type="email" field despises Validationmessagefor Asp.net mvc?
When you use this kind of field he despises ValidationMessageFor? In class [Required(ErrorMessage = "Informe o seu login.")] [DataType(DataType.EmailAddress, ErrorMessage = "Por favor insira ...")]…
-
3
votes1
answer143
viewsQ: Doubt with SQL Injection
I have an internal method that is called on the basis of another query, it is this way down. I wonder if this would be a "string.Format" error, if it would be possible to send an Injection SQL?…