Questions tagged as 'c#'

0
answers

Problem sending SPED-REINF c #

Good afternoon I have a problem sending reinf, when I try to transmit I get the webservice return from the following message: The underlying connection was closed: Unexpected error in a send. --- > System.IO.IOException: Unable to read transp...
asked by 08.06.2018 / 19:38
1
answer

How to display data from multiple tables in DataGridView?

I'm trying to display multiple tables in DataGridView , from a database I mapped through the Entity Framework . Example, person table, address. I tried to use pessoa.BindingSource , then comes the address list, but I could not...
asked by 08.06.2018 / 23:26
0
answers

Error in Generic Function for Procedure Return

I'm trying to do a Generic method for procedure return, but getting DataRow to do a Cast generates the following error:    Unable to cast object of type 'System.Data.DataRow' to type   'ClassGreen'. I'm using a Conversion Type Operator...
asked by 28.05.2018 / 15:21
1
answer

How to do when clicking the execute action button every 1 second

I'm using CefSharp and wanted it when I clicked the button to run the javascript every 1 second and in the background too, and only stop if I click the shutdown button. I tried the backgroundworker but I could not, I'm kind of lazy in tha...
asked by 27.05.2018 / 22:13
1
answer

Connect to the database using .Net Core 2

I am studying .Net Core 2 and I am not able to connect to the database. My appsettings.json looks like this: "ConnectionStrings": { "DefaultConnection": "Server=FAYOL\SQLEXPRESS;Database=Pagamento;Trusted_Connection=True;MultipleActive...
asked by 25.05.2018 / 21:19
2
answers

Send Display Text of an Enum by Json

Well, I have an enum for the days of the week, being: Segunda = 2, [Display(Name="Terça")] Terca = 3, Quarta = 4, Quinta = 5, Sexta = 6, [Display(Name = "Sábado")] Sabado = 7 So I build an object that has a da...
asked by 19.01.2016 / 20:50
1
answer

How to insert C # string in CefSharp script

How can I insert a c # string into the script? string teste = "testando"; chromeBrowser.ExecuteScriptAsync("$(document).ready(function() {alert({0})}); ", teste); I tried this code but it did not return anything     
asked by 30.05.2018 / 22:01
1
answer

Is there any way for a form to inherit from _Layout.cshtml in C #?

I'm developing a website at asp.net c# , I have a contact page that contains a form for the user to fill out and send if they want to send an email. I wanted the form page to inherit the properties of the remaining pages of the site, su...
asked by 24.05.2018 / 09:48
0
answers

Column type is not supported. Type is 'Object' - DataTable

I am wanting to pass a DataTable as a parameter to a procedure, this DataTable comes from an Excel spreadsheet that is then converted into a DataTable. In SQL I created a Type Table with the required fields, all columns with the same name as...
asked by 23.05.2018 / 23:08
0
answers

Local Database .MDF C # Visual Studio 2017 (CONNECTION)

I'm developing a windows application using visual studio 2017, however I came across a problem, on my machine I'm doing the project everything runs right, on the other machine that tests the connection error with the bank, I already installed th...
asked by 24.05.2018 / 06:18