Questions tagged as 'c#'

1
answer

Convert binary extracted from .getUserMedia () to .mp4

I am saving the user's video and audio using .getUserMedia () in javascript and sending it to a websocket listening in C # (MVC). I leave below the path that the data makes until it reaches the server. In Javascript var chunks = []; var str...
asked by 10.03.2018 / 17:01
0
answers

How to create a Lambda Expression querying values from a composition with C #

Today I can create a query expression using the following code: var endereco = new Endereco { Id = 4 }; var param = Expression.Parameter(typeof(Usuario), ""); var ex = Expression.Lambda<Func<Usuario, bool>>( Expression....
asked by 10.03.2018 / 18:26
1
answer

Problems with ScriptManager.RegisterClientScriptBlock

My function btnDownloadArchives_Click well summarized. protected void btnDownloadArquivos_Click(object sender, EventArgs e) { Response.ContentType = "application/octet-stream"; Response.AddHeader("Content-Disposition",...
asked by 16.02.2017 / 15:54
1
answer

update of rows followed according to selected items in listview

We have a table 1, which has building and rooms, building A, room01, room 02 ...., we need to put people in these rooms. These people come from another table (2), which populates the listview. This lvi has checkboxes and is multiselect. What are...
asked by 06.02.2017 / 23:12
2
answers

Dot Matrix Printer Does Not Resize Paper Size

I am using a dot matrix printer for receipt printing. I installed the same as Generic only text. But I send the print, it recognizes the height as A4 paper. How do I get the printer to cut paper when there are no characters. Here is the code...
asked by 13.02.2017 / 14:15
5
answers

How to solve accentuation problems with ASP.NET MVC?

I'm having problems with accentuation in ASP.NET MVC 5. I'm using Visual Studio 2013 Professional and the .Net 4.5 application. SQL Server 2008 and Entity Framework 6. The browser is Google Chrome upgraded and Windows is 8.1. Example: W...
asked by 03.03.2014 / 00:22
1
answer

How to keep the values of the variables in a class

I'm creating a UWP application that will need to communicate with several modules (Arduino) over RS485. At this time and for testing I created a small application that communicates with any of these modules without problems. My problem is...
asked by 19.03.2017 / 22:23
0
answers

Disable map movement with mouse

I have a page with a mapLink map, I would like to disable the move (drag) map with the mouse. UPDATE I got in touch with mapLink support, they passed me the disableDragging() function, I questioned them about the documentati...
asked by 06.03.2017 / 20:33
1
answer

Web api 2 within MVC project. How to prevent redirection to the login page when the token is not valid

I'm doing an API Rest in an MVC project. In the API controllers ( ApiController ) I place the DataAnnotation Authorize , when the token entered is invalid, it detects and tries to redirect to the login page. But I do not want this be...
asked by 02.02.2017 / 21:05
0
answers

Server terminating connection when consuming the same service for the second time

I have a problem, when consuming the same method of a service more than once, during the first call the method works normally, however, when the same method is called in another part of the code, with the same parameters, an exception is thrown...
asked by 23.02.2017 / 18:33