Questions tagged as '.net'

1
answer

How to delete the first records of an excel in c #?

I am trying to load the data from an excel to datagridview, and this is my result of the load. my question is how to eliminate those Column1, Column2, Column3 .. etc .. and that my result is the same as product id, unit of measure, key,...
asked by 02.05.2018 / 18:34
2
answers

How can I save and then read UserControl that were created dynamically, at run time? in C #, WindowsForms

I need to know how and where is the most optimal way in which I can go GUARDING controls (Buttons, Layouts, Label etc) , and mainly also UserControl that were created in time of execution. The funny thing is that ONCE THE PROGRAM I...
asked by 17.06.2018 / 06:27
1
answer

filling list with foreach c sharp and .net

I have the following code in which I add items to a list by foreach this is my code: var archivosguardados = new List<Archivos>(); foreach (var a in modelArchivo) { FactoryClass.ArchivoModelToAr...
asked by 19.04.2018 / 23:36
1
answer

Change Selected Row of a DataGridView with Code in C #?

Good evening to the whole community, my problem is that I have a DataGridView containing name of dishes, and two buttons one that will select the row above the row that is currently selected (if there is one more above) and another that s...
asked by 16.04.2018 / 04:35
1
answer

Convert varchar value to tinyint?

I have a value in a textbox (varchar) in a webform of asp .net and I need to compare it with a tinyint type value of sql. What would be the way? Thanks Greetings     
asked by 08.03.2018 / 17:29
1
answer

mvc recover data from view and refresh

I have only one view in my project, of which the user has to enter a client name to look for it in a mailbox. <form action="registrarCliente" method="post"> <input id="textCliente" name="textCliente" /> <input id="btnAdd" type...
asked by 07.02.2018 / 10:36
1
answer

Unable to load the file or assembly 'Microsoft.CSharp

I have the following problem and I can not find a similar problem anywhere, has anyone had it? The following error appears in the console when debugging my web project. No se puede cargar el archivo o ensamblado 'Microsoft.CSharp, Version=4...
asked by 18.02.2018 / 21:10
1
answer

error: DataSource must be the identifier of a control of type IDataSource? ASP.NET C #

Hi, I have the following gridview in asp .Net <asp:GridView ID="grid1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="False" CssClass="table table-bordered bs-table" allowpaging="True" ShowFooter="True" BackColor...
asked by 02.03.2018 / 19:03
1
answer

How to modify the webconfig connection string from the controller

I have this conexionstring and I would like from the controller to change the data source and other parameters, how can I do this? Thanks in advance     
asked by 17.01.2018 / 16:47
1
answer

Problem with Youtube Extractor with C #

Good morning I'm trying to make an application with WindowsForm in C # to download YouTube audios . I use a Nuget package called YoutubeExtractor . The code is as follows: private bool DescargarAudio() { bool...
asked by 23.12.2017 / 16:05