Questions tagged as 'c#'

1
answer

How to display 2 DB tables within a DataGridView in the application?

I have an application developed C# using the Windows Forms project that displays the Database People Table in a list in the DataGridView field. However I need to display in the DataGridView also the Endereco ta...
asked by 16.08.2017 / 13:08
1
answer

Ajax request does not work - success does not work

I've done the following function: $("#CategoryList").change(function () { $("#SubCategoryDropDown").empty(); $.ajax({ dataType: "json", url: '@Url.Action("GetSubCategory", "ProjectSubCategories")', type: 'POST', data: { id: $(...
asked by 19.08.2017 / 23:07
3
answers

WebSocket - c # .NET

I found almost nothing about WebSockets + .NET in google, I would like to know how this server is done using .NET in the future, the idea is to create an application and hardware (Arduino) that communicates with this WebSocket server. Is it poss...
asked by 23.02.2018 / 20:38
1
answer

Invalid postback or callback argument

I'm having a mistake that started to happen, I've been trying for a couple of days for a solution to it and so far without success. I have a whole form made in webforms that when clicking the button to send the data the following error is gen...
asked by 13.10.2016 / 15:20
1
answer

Claims in TestMethod

Good morning everyone, I am starting in TDD in Visual Studio, and I am having problems / difficulties to pass the Claims permissions on the request that is performed to the server. The following error is occurring:    Message: Test method Mai...
asked by 27.10.2016 / 13:13
1
answer

How to get a column in the database, perform a calculation and send to grid

I want to perform a calculation using the value of the field VAL_VIDA_UTIL of my BD and then save the result from calculation in a new variable VAL_DEPRECIACAO and pass to my fieldName, but I am not succeeding. Could someone help me? My code...
asked by 12.07.2016 / 13:31
1
answer

Error trying to consume WebAPI service

Since this morning I try to get a JSON that a WebAPI makes available. First I tried with insira o código aqui AngularJS and it was not evolving, so I went to the classic Jquery/Ajax and even then I did not succeed. In...
asked by 06.07.2016 / 20:26
1
answer

How to center text using print document c #?

I'm making an impression and would like to center the text or use this code in printpage e.Graphics.DrawString("bla bla bla bla", FontTitulo, brush, e.MarginBounds);...
asked by 08.07.2016 / 03:51
1
answer

Passing information to a Modal

I have this routine using Razor from C #. It lists my messages: Code: @for (int i = 0; i < 3; i++) { <div class="box-body" style="line-height:15px"> <ul class=" products-list prod...
asked by 25.08.2016 / 21:32
1
answer

ASP.NET Server Competition

I have a Silverlight application, which accesses a service in WCF. In this application I have a SaveNoteFiscal () method. This method calls a ValidateNoteFiscal method that checks whether an invoice with the reported number and series alread...
asked by 06.06.2016 / 19:48