Posts by Harry • 3,805 points
339 posts
-
3
votes1
answer931
viewsQ: How to configure routes when the application is not at the root of the Asp.net mvc server?
Locally my site has the following default route is everything works: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using…
asp.net-mvcasked Harry 3,805 -
0
votes1
answer325
viewsQ: Doubt with Microsoft version . NET Framework Asp.net mvc
Doubt, am I using the wrong version? The image shows Version Information: Microsoft . NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34274 On my hosting server says this: ASP, Asp.NET…
asp.net-mvcasked Harry 3,805 -
0
votes0
answers109
viewsQ: Error 403 Forbidden You do not have permission to access this Document Asp.net
After climbing the site done in Asp.net mvc, while trying to access , I have this error, there is some necessary configuration to be made?…
-
-2
votes1
answer5782
viewsA: How to resolve error 405 method not allowed on the server?
The solution to the problem. I don’t know why when using [Httpdelete], locally it works more when you will use it on a remote server will generates this 405 error. The solution was changed to…
asp.net-mvcanswered Harry 3,805 -
1
votes1
answer5782
viewsQ: How to resolve error 405 method not allowed on the server?
I developed a web api, go up the server is of all methods the only one that does not work is to delete, I did a search on the internet is to find out: When you search for the default document, you…
asp.net-mvcasked Harry 3,805 -
0
votes0
answers85
viewsQ: Query with reading data from a web api using Angularjs
I have a web api made in Asp.net, I have a script that reads this data, but I’m not sure how to do the other methods. I am posting the code of the script is html that at the moment is running only…
-
0
votes0
answers50
viewsQ: Error 405 Method not allowed Asp.net web-api
While trying to delete the record, I get this message, all other operations is working. The code: //http://www.sistemaguardiao.com.br/webapi/api/AspNetWebApi/deletar/jogo/4512/5…
-
0
votes1
answer64
viewsQ: Doubt in the publication of site done in Asp.net mvc
After posting to a local folder on the computer, uploading the files online is got me the error:…
asp.net-mvcasked Harry 3,805 -
1
votes2
answers702
viewsQ: Decimal value conversion error in Insert C#
I have an Insert that receives some parameters, more at the moment that mount the sql statement this giving conversion error: Error Converting data type varchar to Numeric.…
-
3
votes1
answer42
viewsQ: Doubt with version of Aspnet.Mvc
In my Packages.config I have the following settings: <?xml version="1.0" encoding="utf-8"?> <packages> <package id="bootstrap" version="3.0.0" targetFramework="net45" />…
asp.net-mvcasked Harry 3,805 -
4
votes1
answer1197
viewsQ: How to send Angularjs data to an ASP.NET MVC backend?
What would be the best and simplest alternative? I have the Web Api: using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using…
-
1
votes2
answers1649
viewsA: Doubt with ng-Pattern input number with 2 decimal places - Angularjs
The simplest solution for formatting decimals: <!-- adicionado para formatar em moeda corrente --> <script src="~/Scripts/angular-locale_pt-br.js"></script> The Complete Code looks…
-
0
votes1
answer485
viewsQ: How to call the printer on a page made in ASP.NET MVC?
I would like to call the printer even if the page is being accessed by mobile. <div class="container droppedHover"> <div class="row"> <div class="span6"> <button class="btn…
-
6
votes1
answer2111
viewsQ: Problems to sum values using Angular JS
See the final result: <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!--inserindo a meta tag de keywords onde definimos as palavras…
-
1
votes2
answers1649
viewsQ: Doubt with ng-Pattern input number with 2 decimal places - Angularjs
I am wanting to format a decimal value so that it is always sent in this formatted: 00.00, I have an example on this site…
-
0
votes2
answers448
viewsA: how to send input value to control using querystring Asp.net?
Change the form to FormMethod.Get Add name to input Grab the result from the controller int idDoregistro = Convert.ToInt32(Request.QueryString["NumeroJogo"]);…
-
-4
votes2
answers448
viewsQ: how to send input value to control using querystring Asp.net?
I have this code on View @using (Html.BeginForm("VisualizaJogoParaExclusao", "Relatorios", FormMethod.Post)) { <div class="row"> <div class="span12"> <input class="form-control…
-
0
votes2
answers188
viewsQ: Validate input to receive value with point separator with jquery?
I need you to receive only values with this format (20.00) Solved <!-- apenas números--> <script> function somenteNumeros(num) { var er = /[^0-9.]/; er.lastIndex = 0; var campo = num; if…
-
5
votes2
answers40895
viewsQ: Validate input to only receive numbers with jquery?
I need this input to receive only numbers: <input class="form-control input-sm " placeholder="número" maxlength="4" type="text" ng-model="numero.nJogo" /> This I need to receive only values…
-
2
votes2
answers261
viewsQ: Do not show 1 row of empty array using Angularjs Asp.net mvc?
I have the following code: <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!--inserindo a meta tag de keywords onde definimos as palavras…
-
2
votes1
answer594
viewsQ: Problems sending e-mail Asp.net.mvc
The SMTP server requires a secure connection or the client has not been authenticated? [HttpPost] public ActionResult Index(string login) { try { var tbuscar = new UsuarioAplicacao(); var retorno =…
-
2
votes1
answer4458
viewsA: How to return day of the week and time formatted sql server 2008?
The solution I found was to make two queries separately, leaving the result so: using System; using System.Collections.Generic; using System.Linq; using Generico.Repositorio; using Generico.Dominio;…
-
0
votes0
answers43
viewsQ: Can I use the result of the Case clause as a field in Select?
This question refers to this: How to return day of week and time formatted sql server 2008? I’m trying to fix it: SELECT CASE DATEPART(DW, GETDATE()) WHEN 1 THEN 'DOMINGO' WHEN 2 THEN 'SEGUNDA' WHEN…
-
4
votes1
answer4458
viewsQ: How to return day of the week and time formatted sql server 2008?
I need to make a query as follows, I have a table (script): 1 - Take the day of the week 2 - take server time in format hh:mm example: SELECT CASE DATEPART(DW, GETDATE()) WHEN 1 THEN 'DOMINGO' WHEN…
-
2
votes1
answer1537
viewsQ: Doubt with passing Parameter Asp.net MVC
Calling the controller is no longer calling the Actionresult (Solved) I have my view: @model IEnumerable<Generico.Dominio.TB_MENU> @{ ViewBag.Title = "Index"; } @Html.Partial("_navbarInterno")…
-
1
votes5
answers150
viewsQ: Doubt with image positioning
I have an image for the logo, I want it to always be positioned in the center of the screen for all devices. I’m using the bootstrap. CSS .relative{ position: relative; left: 40px; } HTML <div…
-
3
votes3
answers4226
viewsQ: Persist information using Viewbag?
I have my screen login is to show the name is id of the logged in user on another screen, so I can use this information. In my controller: [HttpPost] public ActionResult Index(TB_USUARIO model) {…
-
1
votes1
answer414
viewsQ: Form validation ASP.net mvc!
I have a form that validates the fields when trying to send information, only I have a "novapagina" option where I would not like to validate the fields, this would be possible? In the views <div…
-
2
votes1
answer85
viewsQ: What is the best alternative to recording data using a 3G connection?
I have the following situation: a header table with the fields: IDJOGO IDMODALIDADE IDUSUARIO VALOR_JOGADO HORA_JOGO And a detail table: IDJOGO NUMERO_JOGO In this case, it would be feasible to…
-
7
votes1
answer686
viewsQ: Correct method to write to WEB API?
I did a test using a method this way, test using the Postman is worked, wondered if this way I might have any problem. in the Controller…
-
0
votes3
answers237
viewsA: Doubt with pagination in Asp.net
After several attempts I decided to use the Pagedlist Plugin, the final answer was this way: I thank everyone for the contributions, within the architecture I am studying, already able to make…
-
1
votes3
answers237
viewsQ: Doubt with pagination in Asp.net
Does anyone know how to implement a pagination or would have an example using this architecture https://github.com/cleytonferrari/PadraoDeRepositorio/tree/master/TISelvagem I would like to use the…
-
2
votes1
answer381
viewsQ: How do I save the value to decimals before the point in sql server?
I have a field in the bank with this format TESTE numeric(8, 3) I want to record this form. UPDATE TB_PLANO_CONTAS SET TESTE = 001.000 WHERE IDPLANOCONTAS = 63 The result is getting like this: 1,000…
-
0
votes1
answer132
viewsQ: Doubt with Webapi data insertion
I’m using the Postman: Error: "Undefined object reference for an object instance." I have the Controller Code: //http://localhost:1608/api/ApiGuiaCidade/cadastrar/cliente //"Referência de objeto não…
-
1
votes2
answers2356
viewsA: Delphi: Error 80020101 when running javascript in Twebbrowser
A way to solve this: Try WebBrowser1.Silent :=True; //seu código aqui Except On E:Exception Do Begin MessageDlg('Houve um erro ao lentar ler o arquivo : '+E.Message,mtInformation,[mbOK],0); End;…
-
0
votes1
answer473
viewsA: Return query with more than 1 parameter in Webapi
The answer: a rota ficou assim : [Route("consulta/clienteLoginSenha/{email}/{senha}")] é para testar : http://localhost:1608/api/ApiCidade/consulta/clienteLoginSenha/[email protected]/teste…
-
-5
votes1
answer473
viewsQ: Return query with more than 1 parameter in Webapi
I have the code below, how would be the correct route? How can I test the call //http://localhost:1608/api/ApiCidade/consulta/clienteLoginSenha/ [HttpGet] //…
-
1
votes1
answer680
viewsQ: How to return query by a string using Webapi?
I have the following code that gives me an error: The inline Constraint resolver of type 'Defaultinlineconstrainaintresolver' was Unable to resolve the following inline Constraint: 'String'.…
-
-3
votes1
answer541
viewsQ: Get the return of a Webapi method?
I have the following code is I want to get a return on the result variable if it is true or false, how could I do it? //http://localhost:1608/api/ApiCidade/deletar/cliente/10 [HttpDelete]…
-
0
votes3
answers113
viewsA: Query in Sqlserver
When you use parameters, you need to set them in the "Parameters" property more when you need to make some change is need, for example, loading the fields from your table you may have problems is…
-
2
votes3
answers7876
viewsA: Read XML with Xmldocument in Delphi
The simplest way is: Inside Delphi has a tool (tools/ XML Mapper), basically you will open your xml that will be loaded in the Document window, after that, right mouse side on it, Select All is…
-
1
votes4
answers802
viewsA: Incompatible types: Pwidechar and Tcaption
An example : Imagine that in dll has the following function: function Somar(a, b: Integer): Integer; stdcall; begin Result := a + b; // retorna a soma end; //fazendo a leitura de uma dll procedure…
-
3
votes3
answers766
viewsA: How to convert a String to Tnotifyevent in Delphi?
To use a file. INI; First create a file of type . ini with the example content: [P_LOG] command = test Function to read file . ini: function TForm1.LeIni(sIndice, sCampo: string): string; var…
-
-4
votes6
answers1481
viewsA: Log system losing data, how to use Threads?
I do not advise the use of Threads (my opinion), after using several I come to the conclusion that it is not worth it because you can not debug is when sometimes stop working without a logical…
-
2
votes1
answer396
viewsA: Migration dbExpress to Firedac
On the server side, on the components you switched to FDQuery, you do not need to load the fields. Do a test, leave only the SQL query on FDQuery, on the client side add a ClientDataset "new, do not…
-
2
votes1
answer229
viewsQ: Doubt Client-server system migration, Firedac to more than 1 database?
A system was developed using Firebird is dbexpress, for migration of this system so that it was possible to use more than 1 database, what would be the best solution? In Delphi XE we have Firedac…
-
0
votes1
answer126
viewsQ: Sort by position of edited record (sql server)
When I enter a new record, I make an ordination where I sort by the last entered record. SELECT TOP(50) * FROM TB_CLIENTE_FORNECEDOR where status <> 'S' order by IDCLIENTEFORNECEDOR desc If I…
-
0
votes2
answers62
viewsA: Doubt using RIGHT JOIN in Sql Server
The answer was thus: SELECT A.IDPLANOCONTAS, A.NUMERO_CONTA AS NUMERO_CONTA1, A.DESCRICAO_CONTA AS DESCRICAO_CONTA1 , A.OPERACAO AS OPERACAO1, b.IDPLANOCONTAS, B.IDPLANOCONTAS_NIVEL2, B.NUMERO_CONTA…
-
0
votes2
answers62
viewsQ: Doubt using RIGHT JOIN in Sql Server
How could I return the results of these three tables, even if I did not have a relationship between them. I thank you SELECT A.IDPLANOCONTAS, A.NUMERO_CONTA AS NUMERO_CONTA1, A.DESCRICAO_CONTA AS…
-
2
votes3
answers7358
viewsQ: How to avoid calculation error in SQL Server?
I have an appointment that makes a calculation, plus the field "a. totalcustoproducts" appears with zero value in a few moments, then generates a division error by zero, is it possible to pass some…