Questions tagged as 'c#'

1
answer

Quotation marks coming out in the wrong JSON format!

I'm serializing a dictionary to JSON in Razor Pages, however the quotation marks (% with%), are leaving as " _Layout.cshtml (UTF-8) ... <body> ... <script type="application/ld+json"> @JsonConvert.Seriali...
asked by 10.01.2018 / 17:04
1
answer

Two foreign keys in the same column EF

I'm having a question, I'm programming with .NET MVC using the Entity Framework. I currently have: class Produto { public int ProdutoId { get; set; } public string Nome { get; set; } public string Descricao { get; set; } publi...
asked by 10.01.2018 / 17:53
0
answers

UdpClient not getting

I tried to do a local chat program using UdpClient, no exception is thrown, it just does not get the message (I'm running 2 equal). My code: public class UdpSenderReciver { int Port = 9600; private static UdpClient udp; static IPAddress addre...
asked by 10.01.2018 / 17:43
1
answer

Web application to access the local base in different networks

I'm developing an asp.net web application to import data from an old (desktop) system to a new (web) system. I want to make a tool to import the data from the clients to the new system, ie the web application have access to the local database of...
asked by 09.01.2018 / 15:11
0
answers

Print on non-fiscal printer Elgin i7 c #

I'm developing a POS system and I need to do coupon printing! I am in possession of a non-fiscal printer from the i7 elgin model. I've been looking for a way to print a coupon from a Report (.rdlc) that I've been working on for a while, but I ca...
asked by 18.01.2018 / 18:38
0
answers

How to resolve conflict between different versions in Visual Studio precisely in Xamarin?

Good afternoon, I have this warning stuck on my screen and I can not run the app consuming a webservice because of this version conflict, can you help me solve it? Thanks in advance!     
asked by 18.01.2018 / 19:43
0
answers

How to store another page (web form) in a variable Page asp.net

In a button1_click event of my Default.aspx page the following happens: Page pagina = this; But instead of storing the page itself, I need to store another page of my project, "Cadastro.aspx" for example. Is this possible?     
asked by 24.01.2018 / 15:36
1
answer

Sending problem SPED-REINF C #

Dear friends, I'm trying to send an xml for approval to the SEFAZ for SPED-REINF code R-1000, I got help for the methods needed here with the friends of the discussion list. But I have the problem that I do not know how to solve, every file I...
asked by 15.01.2018 / 20:24
0
answers

Generate .rdl Report PDF with C # Windows Form or ASP.NET

I have a report created in the Report Service and working. How do I generate a pdf of this report with C # Windows Form or even Asp.net? Note: I have to pass some parameters to the report, such as enrollment and report year.     
asked by 16.01.2018 / 13:00
0
answers

How to implement a MediatR INotificationHandler interface method - Asp.net Core

When installing MediatR 3.0.1 in my project, the INotificationHandler interface looks like this: #region Assembly MediatR, Version=3.0.1.0, Culture=neutral, PublicKeyToken=null // C:\Users\jalbe\.nuget\packages\mediatr.0.1\lib\netstanda...
asked by 16.01.2018 / 09:18