Questions tagged as 'c#'

1
answer

How to send more than one query in a reportDataSource.Value for reportviewer?

I have the following code as an example: ReportDataSource reportDataSource = new ReportDataSource(); reportDataSource.Value = query; I currently send a query to .rdlc in a table, but I would like to know how to send more than one query or a...
asked by 26.09.2016 / 03:42
1
answer

Show certain time window form

Good I'm doing in window form a mini system that when there are 2 buttons 1: first button called a raffle is to appear at a certain time and my 8 numbers appear label 2: regenerate button is only bleach is to say that they are visible again...
asked by 07.07.2018 / 00:18
2
answers

Capture the Checked of a CheckBox inside a Datagrid from the ViewModel

I have a requirement in WPF , I made a ViewModel called AsignaFacturasVM for my View, in which I have a Label that is linked to a property float called Accumulated Amount of my ViewModel and I also have a...
asked by 10.07.2018 / 23:31
1
answer

C # - High memory consumption using iTextSharp

I have the following code, the objective is to open a file pdf , calculate the hash of it and keep the file in memory (approximately 20 seconds) to later sign it and save it. What happens, a pdf of 90mb is loaded and when y...
asked by 03.07.2018 / 18:33
1
answer

Where to place my DbSet in my project with Entity Framework?

Well this may be a silly question but I would like to know how other people who use this framework work. I am new using these technologies, I am using Visual Studio with ASP.NET MVC 5 and Entity Framework and I have just started a new project, I...
asked by 08.07.2018 / 06:18
1
answer

How to save in variable fields of a csv in c # and delete the first line?

In my code I pass a number of lines that I want you to take from csv and then,  for each line I iterate the elements that make up the csv but I'm not getting it, I put the code prueba.csv gato,casa,http,antonio; perro,abanico,https,li...
asked by 17.07.2018 / 17:53
2
answers

ComboBox in DataGridView getting the value in the SelectedIndexChanged event

I am working on a Windows Forms application in which I have several ComboBox in different columns of a DataGridView. The need I have is to take the values in the event SelectedIndexChanged of each control ComboBox, I have implemented t...
asked by 30.07.2018 / 22:41
2
answers

How to use url segmentation in asp.net mvc?

Good I have the following doubt, I want to know how I can work with the url, what I mean is the following, in PHP / Codeigniter, we worked in this way. //URL= https://localhost/algo <?php if($this->uri->segment(1)=='algo') {?> //s...
asked by 16.08.2018 / 19:12
1
answer

How to send by parameter of type string that contains special characters to the controller function?

In the view I have the following code: $("#btn_descargar").click(function (e) { e.preventDefault(); debugger; var iBody = $("#iframeID").contents().find("body"); var myContent = iBody.find("#myContent").text();...
asked by 20.08.2018 / 18:16
1
answer

UpdateProgress ASP.NET C # does not close

I have a page in which I have an ImageButton that generates an excel with a report. The problem is that by clicking on the button the UpdateProgres is executed but it never finishes executing, although the excel is generated and I can download...
asked by 31.05.2018 / 18:05