Questions tagged as 'c#'

0
answers

Configure Fixed Port for Web Designing API Asp.net Core C # [closed]

I would like to know how to configure a standard fixed port for my Web API application in ASP.NET core.     
asked by 20.08.2018 / 21:11
0
answers

The whole data inside the dropdown loads in the get request and in the post does not

I made an edit function that works with 3 different models, the get loads the data of the id that I selected, but at the time of the post, the integers inside the dropdowns come with the attribute 0. Here is my code for evaluation: Control...
asked by 20.08.2018 / 16:34
2
answers

Error converting an array from a .csv file to a datatable

I have tried to pass the data from a .csv file to a datatable and the code seems to be all ok but I have been back from this error for quite some time and I do not know how to resolve it. I have two columns in my .csv file and a string type a...
asked by 21.08.2018 / 01:20
1
answer

Paged ASP.NET MVC PagedListPager with more than one parameter

I have the following page using x.PagedList @using AspNet.Models; @using X.PagedList.Mvc @{ ViewBag.Title = "Visualiza"; @model X.PagedList.IPagedList<AspNet.Models.Pessoa> } <h2>Pessoas Cadastradas</h2> <div class="ta...
asked by 10.08.2018 / 04:08
1
answer

Pass object to a sql server proc

How can I make an SP that receives an object? This is my SP ALTER PROCEDURE [dbo].[sp_alt_funcionarios] -- Add the parameters for the stored procedure here ( @id int, @nome varchar(60) ,@dataNascimento DateTime...
asked by 09.08.2018 / 22:04
2
answers

Problems with values passed to static variables with class on server

Good morning everyone. I am currently suffering from a problem and can not find the solution. I have a login system in ASP.NET C # when I do the authentication everything happens correctly only so that's the problem I need to get the ID value...
asked by 10.08.2018 / 08:22
0
answers

I'm having a problem consuming the sky webservice. The sky server https://ecommerce.cielo.com.br/servicos/ecommwsec.do [closed]

Until two weeks ago the application was working normally and thereafter stopped working with the following error: "The request was aborted: Could not create a secure channel for SSL / TLS." I also inform that in this period there was no update i...
asked by 09.08.2018 / 17:08
0
answers

Object comes null in the query, even if it exists

I have this method in my controller [HttpDelete] public HttpResponseMessage DeletaCidade(int id) { Cidade cidade = banco.Cidades.Find(id); if (cidade == null) { return Reques...
asked by 09.08.2018 / 15:11
0
answers

Scan Excel table data and save in SQL Server (Asp.Net MVC 5 C #)

I have an 'input file' that the user will upload the worksheet, I need to check if it is .xlsx or .xls and scan the data of that worksheet. After that, I need to save these items to Sql server. On verifying the extension...
asked by 01.08.2018 / 18:58
0
answers

Pass interface to SignalR Hub

Is there any way to pass an interface as a parameter in the hub constructor? For some operations, I needed to access the repository layer methods through the interfaces. Is there any way to achieve this? Thank you.     
asked by 23.08.2018 / 16:08