Questions tagged as 'c#'

2
answers

Link Autoincremental ID before SaveChanges

I'll give you an example I have two tables CLOSE CierreID Descripcion Entity EntidadID CierreID Descripcion At the code level I create a Closure object Cierre a = new Cierre() a.Descripcion = "Ejemplo" db.Cierres.Add(a);...
asked by 21.03.2018 / 18:53
1
answer

Enable Keyboard

I share my question, I have a numericUpDown and I want what to write a number, if this is greater than 10 digits block or disable writing. Below I leave an example of what I've been up to now, but that's where I "get". Thank you in advance fo...
asked by 14.03.2018 / 21:57
1
answer

load select type option from a date input type date ajax c # json

I have an input of type date in HTML5 to select the date and from the date fill a select with options with the available schedule of the database for that day. For that I activate the event onChange of the input type date and I use ajax to call...
asked by 04.03.2018 / 21:45
1
answer

how do I add the data in a DataGridView column to c #? [closed]

I can not find the way to do the addition of a column in a datagridview.     
asked by 04.03.2018 / 19:09
1
answer

Does it help to pass a query in MVC 5 to a view without generating migration?

Hello, I'm all working on a project in MVC 5 with the Data Entity migrations, generate a table but now to that same project I want to make a query of another existing table, a SELECT and send the records as a table to a view, but not modi...
asked by 01.06.2018 / 03:51
1
answer

Create C # Application that opens and install winrar.exe from my pendrive

I want to create a windows form type application in C # that opens an installation assistant .exe and automatically press the Next> buttons. Next > Finish (To give an example) I already have the test button created and I have the code to o...
asked by 01.06.2018 / 18:16
1
answer

How can I compare 2 data from a datagridview

Hello friends, I'm trying to compare a grid record, 2 values. DataGridViewRow row = dgvList.Rows[idx]; if (row.Cells[3].Value.Equals(row.Cells[5].Value.ToString())) { var alta = Application.OpenForms.OfType<Alt...
asked by 15.07.2018 / 19:31
1
answer

CLSID error {000209FF-0000-0000-C000-000000000046}

I am developing an application in ASP.NET (C #) when pressing an image that would be: At the moment of pressing it, you should open a predefined Word file. When running it inside ASP.NET it works without problem but when publishing it insi...
asked by 16.07.2018 / 23:19
1
answer

Insert rows in a specified column for each row created previously

Good morning, my problem is that I'm working on a project, where I'm using DataGrids and I run into a problem: The user enters information in textbox give "add" and generates a row with the information of textboxs , now wha...
asked by 05.04.2018 / 16:41
1
answer

Call a controller from a view that belongs to another controller

I created a project in VS 2017 with Scaffolding (CRUD) has created the views. But now how can I call the CRUD driver within the project that VS creates by default, I put the name of the driver in the URL and it works, but I need to call it a...
asked by 05.04.2018 / 22:48