Questions tagged as 'c#'

0
answers

Id reaching null in the controller action Asp.Net MVC

I have a list of requests (Vr), in this list I have created a button to end this request (Open Mv) WhenIclickthisbutton,I'mredirectedtomyLowview,whichhasitsownattributes,plustheRequestId(Vr).Thispartisworkingfine,I'mgettingtheclickonthebutton,a...
asked by 14.05.2018 / 15:28
1
answer

Object as parameters for C # API

I have a request made in Angular for C #. However I do not know how to receive the data in My API In C #. getWithFilters(filter: any) { let parametros: any = { razaoSocial: filter.razaoSocial, cnpj: filter.cnpjcpf,...
asked by 02.05.2018 / 22:02
0
answers

How to declare a ternary condition in XAML as a parameter for a CustomMarkupExtension

Hello, I'm starting to work with WPF and I've created a Custom Markup Extension starting section of this tutorial . The intent of this Markup Extension is to simulate the declarative conditions that are found in WebFrameworks such as the Ang...
asked by 13.06.2018 / 17:34
0
answers

Elastic transactions with MS SQL Server

Considering the following code snippet: using (var scope = new TransactionScope()) { using (var conn1 = new SqlConnection(connStrDb1)) { conn1.Open(); SqlCommand cmd1 = conn1.CreateCommand(); cmd1.CommandText =...
asked by 13.06.2018 / 15:53
0
answers

Report in Master View-Detail Report View

Expensive pigtails, I am developing a Report View of the master-detail type. The data source for this report will be a text file. It's practically ready. The problem is at the moment of transferring the data from the detail part to the report...
asked by 13.06.2018 / 21:29
0
answers

Doubts with modeling in the database

I'm creating a small project and I do not have a lot of database experience and having trouble modeling your tables. The project consists of an output manager, where we will have normal products (like products from a market) and products compose...
asked by 22.04.2018 / 00:38
3
answers

MensageBox is in loop

When I start my project WinForms I set focus on a lookUp Edit component of DevExpress that has a Leave event. The purpose of this focus is to make target selection compulsory. The initial value of this component is...
asked by 20.04.2018 / 20:54
1
answer

Call AXIS service with C #

I need to consume this service in a C # application: link But I can not add as a reference in the project. When I try to do this, I get the following message: Hi there, this is an AXIS service! Perhaps there will be a way to invoking...
asked by 21.04.2018 / 03:23
0
answers

Error System.OutOutMemory when exporting excel c #

I need to export a report to excel in C #, but when I use this code, the 'System.OutOfMemory' exception is returned in line: wb.Worksheets.Add(dt, "Relatorio"); per account of the size of excel (580mil lines). using (XLWorkbook w...
asked by 18.04.2018 / 03:58
1
answer

c # Json returning backslash

I'm new to web, I'm trying to return a json but it comes with bars like this: {\"NomeUsuario\":\"TESTE\",\"TelefoneUsuario\":\"1111111111\"} How do I make it look like this: {"NomeUsuario":"TESTE","TelefoneUsuario":"1111111111...
asked by 16.04.2018 / 13:30