Questions tagged as 'c#'

1
answer

Migration with possible data loss

When generating an update of db that results in possible loss of data efcore shows alert:    An operation was scaffolded that may result in the loss of data.   Please review the migration for accuracy. (In this specific cas...
asked by 11.01.2017 / 02:43
1
answer

call action method in the controller through a view script

I have an action inside my controller, to download an XML file, with the following signature.   public ActionResult Export (int id) {}, I do not understand in my page I have a button that calls a download script in the view, I need this scrip...
asked by 11.01.2017 / 13:49
1
answer

Wpf Modern UI Metro Chart Update Chart

I have the graph below where the first load works normally, but when I do a search and change the list it continues with the previous series. Ex: In the first load I have 8 items in the list and it shows ok. According to a population survey a...
asked by 11.01.2017 / 13:12
1
answer

Rest with Angular 2 [closed]

In recent weeks I have been training a lot in angular 2. However, some doubts have arisen in the course of these studies and I would like the help of you for those who know how to heal such doubts. Come on: Question # 1 - In my studies I have...
asked by 10.01.2017 / 03:56
1
answer

ReportViewer does not load in Internet Explorer 11

I'm trying to open a report with ReportViewer on Internet Explorer 11 and it does not open completely. This occurs with the application posted to an application server, but when I run the local report on my development machine with...
asked by 09.01.2017 / 14:09
1
answer

show exception error on callback AJAX

I have this ajax call: $.ajax({ method: "GET", url: "/Shipper/getFullAddress", data: { postalCode: value }, dataType: 'json', success: function(data) { $('#AddressStreet').val(data.AddressStreet);...
asked by 09.03.2017 / 15:21
1
answer

Get DropDown value when Textbox receives focus

What can I do to get the value that is selected in a DropDownList and pass to a TextBox only when Textbox gets the focus (when the user clicks the field)? I've already put a Autopostaback into DropDownList t...
asked by 28.12.2016 / 12:54
1
answer

Convert a text file to PDF without saving to a physical location

Well I made a method to convert a text file into PDF, however it saves the PDF on the machine. I wanted the method to return a array without having to write the PDF to the machine or have to read the file again. public byte[] Converte(s...
asked by 26.01.2017 / 14:10
1
answer

A3 Digital Certificate with C # X509Certificate2

When I'm issuing MDF-e / NF-e / CT-e (any tax document) using the A3 certificate, I'd better set the pin via code using the method here /// <summary> /// Classe para passar o Pin Code por baixo do código /// (a caixa de dialógo pedindo o...
asked by 26.01.2017 / 18:25
2
answers

Message for user in Label with Jquery

I am doing validation of the registered user's email, and I want to display the message to him in case the email already exists, so I did this: //validação de email $(function validateEmail() { $('#Email').change(function () {...
asked by 18.12.2016 / 15:22