Questions tagged as 'c#'

1
answer

Doubt with Array in C # returning data in Json

I have a structure that returns me the results of the header and detail, only the records are duplicated according to the details, as I could only bring the header once, thank the help. //consulta o jogo completo passando o ID do jogo //http:/...
asked by 15.04.2016 / 20:54
1
answer

How to list in the listView the results of MySql

Code Structure In this function below I try to get the content of the MySql database and passing it to a List<BDependente> lDep in the line where facade.listDependente(bDep); Employee Method lvDependente.Col...
asked by 20.04.2016 / 11:55
1
answer

Model arriving empty in the controller

I basically have a Controller that sends iList to View , this View could edit any record of this iList , however when Controller receives it already empty. I did so: Controller: public ActionRe...
asked by 05.02.2016 / 20:09
1
answer

How to treat a decimal field with no boxes after the comma in a jquery mask mvc c #

I have a model with the following definition: [Display(Name = "Quantidade / Volume:")] public Int32 RoQuantidade { set; get; } In my View to fill in the data when empty, that is, that have not yet been written, using maskMoney work...
asked by 08.04.2016 / 19:19
1
answer

WindowsForms - C # - ReportViewer - Compound object

Good afternoon, I'm starting to develop reports using ReportViewer for Desktop applications using WindowsForms (C #). I'm having problems with objects made up of others, for example: class Produto { public int Codigo { get; set; }...
asked by 11.04.2016 / 23:05
2
answers

Edit Image in database when field is empty [closed]

I have a code that uploads an image. In the database worked beautifully. Now I need to make a code that only changes the image when it is selected. That is, in my case, when I change a record, you must have to select the image field. Otherwise,...
asked by 25.09.2015 / 14:08
1
answer

IIS 7 - Error 403 Forbidden: access is denied

I have a webservice restfull and when I debug on my machine with my Visual Studio it works normally, but when I publish to my production server with IIS 7 it gives an access denied error. My project is in mvc , but if I put a...
asked by 29.09.2015 / 13:34
1
answer

Doubt with EntityFramework (Migration)

I'm trying to get my code to run, but I'm not getting through this Error    Severity Code Description Project File Line   Error CS0311 The type 'InternalControl.Migrations.InternalControl.IntContext' can not be used as the 'TContext' type par...
asked by 30.09.2015 / 02:44
1
answer

How to display an item from an enum in my table using AngularJs?

I have a table where I make a ng-repeat , so far normal. <tr data-ng-repeat="item in itemsconfiguration"> <td>{{::item.Description}}</td> <td>{{::item.Order}...
asked by 29.09.2015 / 20:57
1
answer

How to add columns and values in the columns in a ListView at run time?

I have ListView listViewListaChamada and I'm trying to add columns and values to the columns corresponding to my ListView listViewListaChamada , but I did not succeed. I created the function below to popular my ListView: private v...
asked by 16.12.2015 / 21:02