Questions tagged as 'asp.net'

1
answer

Using model annotations for C #

I have this annotation in my model [ZoneamentoDados(fim = 2, inicio = 1, tamanho = 2, obs = "Tipo Registro")] public String tipoRegistro { get; set; } [ZoneamentoDados(fim = 54, inicio = 54, tamanho = 1, obs = "Sempre 1")] I need to use the...
asked by 16.01.2017 / 13:17
1
answer

POST is not receiving JSON

I need some help with running a POST. Well, when I try to call my API ( link ) to execute a Post, I can not pass the JSON for her. The following is the API used: // POST: api/Teste public void Post([FromBody]string json) { ClassRetorn...
asked by 11.10.2016 / 04:51
2
answers

Parameter arriving truncated in Ajax request

I have a Ajax request that gets the data I need from a WebMethod . The problem is that the parameter used for the request is "arriving" truncated in WebMethod the length of the parameter is 44 digits. Parameter sent: 31...
asked by 22.11.2016 / 11:42
2
answers

Prevent Seed from duplicating data

I'm using this code in Seed to generate values in my table, so I do not have to type in the database, when I change something in my code and need to give an update in the database, so it is not running, , the code below is for adding or updating...
asked by 08.11.2016 / 02:22
1
answer

Error writing information from an ASP.NET page to the database

I have an application developed in ASP.NET (VB.NET) with two RadioButtonList and a TextBox where this information is returned by VB and written to the database, clicking on Write System displays the error described below and the information are...
asked by 11.07.2016 / 14:25
1
answer

How to work with more than one dropdownlist to mount a C # URL?

I have the following dropdownlist where in the first one the person chooses whether he wants rental or sale. Thequeryinthedatabaseisbeingdoneasfollows:publicList<Imovel>ObterCasaOperacao(stringcodigoOperacao){try{stringsql="SELECT i.Co...
asked by 22.08.2016 / 19:16
2
answers

C # ASP.NET - Get the last value of a Parameter from the Stored Procedure

I have a Stored Procedure that inserts different fields. But nevertheless there is that when being inserted I want to catch and put on the screen. It is inserted into the database in the following way: cmd.Parameters.AddWithValue("@nume...
asked by 05.05.2016 / 17:54
1
answer

"The best overloaded compatible method has some invalid arguments"

I'm creating a service with a method that has an argument of type List<OrdemPais>() , and passing an object of that type to the method, but at compile time the error appears: O melhor método sobrecarregado compatível com 'Mahikari....
asked by 28.09.2016 / 19:46
1
answer

Programs and / or extension that "decompile" DLLs from an ASP site

Does anyone know of any program or extension that can do a sort of "decompilation" of DLL files (containing classes from a website) into CS and ASPX.CS files? For the time being, I only know of the .NET Reflector, which is used as a Visual St...
asked by 08.04.2016 / 20:03
1
answer

How to use a table in the bank with different fields of the model layer?

For example, I have a table where the field in the database named COD_CLIENTE , but in the model layer it is ID_CLIENTE , how to access that value without changing the name of the model in VB.net ? Partial Public Class Cadast...
asked by 28.03.2016 / 22:05