Questions tagged as 'c#'

1
answer

How to Make a Balloon Help in WPF? [closed]

I'm developing a WPF application, and in it, I need each Label to have a Balloon, for example, Name * (full name); can anybody help me? I would like to do in pure WPF, but if it does not, is there any simple way to do it?     
asked by 13.11.2018 / 20:02
0
answers

System.MissingMethodException: No parameterless constructor was defined for this object

I'm getting the following error:    System.MissingMethodException: No parameterless constructor has been defined for this object. My Controller: using BecomexTeste.Models; using BecomexTeste.Models.BracoViewModel; using BecomexTeste.Ser...
asked by 14.11.2018 / 15:10
0
answers

Problems using the GoogleMaps.LocationServices API in ASPNET MVC

I'm working on a development that plots multiple longitude and latitude locations from the SQL SERVER database that load on a map after typing some search data. Below is the screen with the problem that does not load my Google Map, I'm using the...
asked by 22.11.2018 / 21:18
1
answer

Calling the API with HttpClient - POST

It's the first time I've developed something like this, so I do not know what might be wrong. I'm making an API call with HttpClient , like this: private string autenticar() { try { using (var client = new HttpClient()...
asked by 18.11.2018 / 15:23
0
answers

How can I convert .Row values to string and insert into a combobox? W#

I have the following code: for(int i = 1; i<dataTable.Rows.Count; i++) {comboBox.Items.Add( dataTable.Rows[i].ToString());} When I run the application, in combobox , only System.Data.DataRow appears to me. I wanted all the i...
asked by 12.11.2018 / 21:48
0
answers

How to export an image from GridView to PDF with ItaextSharp using ASP.NET + C #

I'm working on a project, where I need to present the image of the SQL database that is loaded in GriView even here. But I can not put this image in the Report using ItextSharp. Someone can help Thanks     
asked by 12.11.2018 / 20:46
1
answer

How do I make the selected item in a Categories List reallocate in the first position

In my application I have an area with several category links that is a PartialView. The following categories come from the following Categories of ControlController var categorias = db.Categorias.ToList(); Shoes | Health and Beauty | Sup...
asked by 11.11.2018 / 15:58
0
answers

Update data that has many-to-many relationship with Entity Framework

I'm trying to update an object and the only thing that does not update is its relationship from many to many the rest as first and last name update [HttpPost] public IActionResult AtualizarProfessor(int id, string nome, string sobrenom...
asked by 10.11.2018 / 17:58
1
answer

Problems contacting domain controller

I made a program that accesses directories on the network. This program uses the windows API WNetAddConnection2 . An example implementation of this API is available in C# in SOEN . Here is the code for reference: public class Net...
asked by 19.11.2018 / 11:03
1
answer

Error When Updating Database with Entity Framework Core Code First

I have my domain created with N objects and these objects are converted to table in the database, in the Framemework Core Entity with Code First. If I create the database with the tables it creates perfectly however if the table already exists a...
asked by 22.11.2018 / 17:13