Questions tagged as 'c#'

1
answer

Bring selected combo box filled manually

I'm having trouble creating a combo of "Enabled" and "Disabled" by passing the value of the bank to bring it filled. In my controller , I created the following code: InmyView,followingcode: Theresultisthat,withthecoderunning,itwillalwaysapp...
asked by 03.08.2015 / 14:11
2
answers

Type not expected when serializing web API

I'm trying to use the Api web and getting this error when trying to serialize an array.    The type 'HT.Data.Client' with data contract name 'Client: link 'is not expected. Consider using a DataContractResolver if you are using a DataContra...
asked by 07.11.2016 / 18:31
1
answer

Ninject does not load dependencies. Asp.NET MVC C #

I'm using NinjectWebCommom to work with Inject. I installed the package via Nuget and automatically it creates a class named "NinjectWebCommon" in the App_Start folder, as the documentation itself says. I need to know why it is not working corre...
asked by 31.07.2015 / 04:03
1
answer

Update Mongodb in array

{ "_id" : "55dcb404478e7227203d3a65", "Nome" : "Grupo Familia", "Pessoas" : [ { "PessoaId" : "55dcb425478e72207833e970", "Nome" : "Carlos", "Habilidades" : [ {...
asked by 25.08.2015 / 21:14
1
answer

The method or operation is not implemented error

When I add a record to my Include screen, this error appears to me. What can it be? Service public void AddItem(Test item) { var codigos = this.context.Tests.SingleOrDefault(x => x.Codigo == item.Codigo);...
asked by 21.08.2015 / 15:19
1
answer

Accordion in Windows Form?

Hello good afternoon / evening I'm new to C #, someone here has an idea of how I would get the accordion effect on Windows Form just like in HTML using jquery     
asked by 20.08.2015 / 18:37
1
answer

Performance on queries with string filter vs foreign key

I'm working on a Asp.Net MVC 5 project that uses code first and all entities have a property named UserId of type string . When I make queries filtering by a certain user ( Asp.Net Identity ) I do so: string cu...
asked by 20.08.2015 / 19:18
1
answer

How to call column name from another class in the MVC WebGrid

I have this view Listar.cshtml @model IEnumerable<ODM> @{ var idGrid = "grid" + this.ViewBag.IdParameters ?? string.Empty; var grid = new IBM.Web.Helpers.WebGrid(id: idGrid, rowsPerPage: this.RowsPerPage, ajaxUpdateConta...
asked by 17.08.2015 / 21:55
1
answer

Popular datagrid with threading

I'm contracting a Windows Form application. I am not getting my datagrid popular with a threading , the following error appears:    "Invalid thread operation: datagrid control accessed from a thread in the thread it was created on.  ...
asked by 14.08.2015 / 03:35
3
answers

Problem with INSERT INTO

I'm trying to make a INSERT in MS SQL , when running the code, there is no error, but does not INSERT in sql, when running a script manually in sql it writes without any problem I have tried both ways, which is also discus...
asked by 21.07.2015 / 17:18