Questions tagged as 'c#'

1
answer

List Available [closed]

Good afternoon, I have a procedure to show available vehicles for a certain period, but it is not working, this is the code that I have in the layers persistence and logic. Persistence: //public static List<Vehiculo> disponible(Da...
asked by 27.12.2017 / 17:53
2
answers

Update C # does not work

Hello, I'm trying to make an update with C # from VS , but I can not find it and I do not know if I'm having a bad time or if I can not execute a query directly as I pretend I would appreciate your help. : D [WebMethod] public JsonResult Up...
asked by 04.01.2018 / 22:43
1
answer

How to create tables with EntityFrameworks and that are added to the model by code? [closed]

I am developing a Human Resources System, where I have used EntityFrameworks, get to the part that I need to create Tables through the application and be able to use them later. Can You Create Tabas Dynamically with EF? What would be the Code?...
asked by 22.12.2017 / 19:17
1
answer

Obtain the server response URL with c #

Good afternoon, I've been trying for a while and I do not see that I'm approaching the solution. I need to send a url of the type www.dominio.com for the server to return www.dominio.com/index.html, for example. Come on, the domain default pa...
asked by 13.07.2017 / 14:37
1
answer

Avoid repeated in Matrix

I edit my previous question, I have this code: Methods: class Program { static void nuevo(int[] lista, int cantidad, ref int tope) { lista[tope] = cantidad; tope++; } static void jugada (int[,]m, int naposta...
asked by 26.06.2017 / 14:09
1
answer

How to get value when placing attribute enable false c # aspx [closed]

Good evening, I would like you to help me, I have a combobox that by default has a value of 4 and in codebing it is placed in the load combobox.enable = false; But when you save that value that is 4, you put 0 As if that enable whites the...
asked by 29.09.2017 / 03:58
1
answer

Shutdown PC using the CMD command in Visual Studio C #

I have a textbox called txtMinuto and a button called btnApagar . I want to use the command SHUTDOWN -s -t that is used to turn off the PC at a predetermined time but when I run my line of code to turn off the PC according to...
asked by 19.09.2017 / 20:47
1
answer

Error inserting it

The procedure or function 'Insert Product' expected the parameter '@Name' private static int ejecutaNonQuery (string StoredProcedure, List<DbParameter> parametros) { int Id = 0; try { using (DbConn...
asked by 12.11.2018 / 14:25
2
answers

Error editing a visual studio project in another pc

I'm developing a project in Visual Studio and this project I'm continuing on a new PC, my problem is that when I run the project to know how it goes I get the following error.     
asked by 23.10.2018 / 21:44
2
answers

How to link a chekedListBox with a reportviewer recognizing all the selected items?

this is the button that generates the report: private void bunifuThinButton21_Click(object sender, EventArgs e) { Datos datos = new Datos(); AsesoriaFiscal af = new AsesoriaFiscal(); datos.No...
asked by 01.06.2018 / 11:46