Questions tagged as 'c#'

2
answers

Add data to a combobox from another form

I have two forms, in one I have a ComboBox which in the event Load uploads data from a database sql server making a query. To add more data I would have to modify my query, which I added a button in front of ComboBox , whe...
asked by 07.06.2018 / 16:04
1
answer

How to select excel sheet to import into a DataGridView C #

I managed to import an Excel file into a DataGridView, just that I have a problem, I would like to be able to import any Excel file without importing the name of the sheet because for now I can only import files that have the name [Sheet $],...
asked by 05.06.2018 / 18:36
0
answers

CheckBoxFor and ListBoxFor do not behave in the same way when making a post with them?

I have a form in which I occupy ListBoxFor and CheckBoxFor for them I have their respective classes which are the following. public class SelectViewModel { public List<SelectListItem> MiPropiedad { get; set; } publi...
asked by 05.06.2018 / 20:41
0
answers

Comboboxcolumn datagridview c # sql server

I am working on a project on c # and sql server. When selecting an item from a comboboxcolumn, you must bring me the description and price from the database, if it does, but it marks the following error. I have these events private vo...
asked by 01.06.2018 / 01:45
0
answers

how do I run the sp that has an update from asp.net?

I have the following problem: I have an application in 3 layers in the data layer I have the following code: public string D_RegistroAprobacionRH(int vopt, string vObservacionVrh, string vUsuarioValidarh, string vObservacionArh, string vUsuar...
asked by 02.06.2018 / 00:33
1
answer

Error 404 when trying to download PDF - ASP.Net C #

I need to download a PDF that I have stored inside a folder in my application, I want it to open in a new tab. The following code works perfectly for me in my local application but once published on the server and trying to download the file, i...
asked by 05.06.2018 / 15:07
0
answers

Designer error Visual Studio 2005

I have a windows forms project more than 10 years old developed in Visual Studio 2005. When I compile and execute it works well, the problem arises when I open the design screen, which does not come out, The following text appears:    .ErrorS...
asked by 12.06.2018 / 11:00
0
answers

Crystal Report error System.OutOfMemoryException

I have developed an application where I generate a lot of PDF files with Crystal Report and then send them by email. The problem is that as I generate the PDFs the consumption of RAM increases steadily until a System.OutOfMemoryException error i...
asked by 31.05.2018 / 04:00
0
answers

Add a bitmap image of Resources to a pdf with the iTextSharp.text class

Is there any way to convert a bitmap image that is in my resource file to an iTextSharp.text.Image image so I can add it in a pdf? I have the following code: document.Add(iTextSharp.text.Image.GetInstance(Properties.Resources.electra...
asked by 31.05.2018 / 07:12
0
answers

Receive values from window.location.assign

Researching I found that window.location.assign allows me to load a website / application and I can send parameters to it. But my question is whether a value can be received that returns that site or application to that invocation? What I hav...
asked by 01.06.2018 / 15:50