Questions tagged as 'c#'

1
answer

Fill GridView with two nested tables

I have the following two nested tables: TAREAS( ID INT PRIMARY KEY, TAREA VARCHAR(50), DETALLES VARCHAR(200), FECHAINICIO DATETIME, FECHAFIN DATETIME); TRABAJADORES_TAREAS( ID INT PRIMARY KEY, TAREA INT FOREIGN KEY REFERENCES TAREAS(ID), TRAB...
asked by 08.11.2017 / 12:23
1
answer

how to block the space key in a text field c #

How can I block the space key when writing over a text field to prevent the user from entering a space when registering something? I currently control only letters and numbers in the Keypress. I need no field to be sent to the database with spac...
asked by 22.11.2017 / 20:31
0
answers

Edit Excel cells with Visual Studio C #

I try to make a program to read and write cells of an Excel file and I am following a small tutorial that I found. The case is that at the time of adding the references; microsoft.visualstudio.tools.applications.runtime microsoft.office.intero...
asked by 15.11.2017 / 09:27
2
answers

ado.net stored procedures asp.net mvc 4

I am working on n-layers asp.net mvc 4 c # web and I want to list an SP that contains inner join and that is listed when an ID is sent . the topic esque to list I do it in the following way in my DAL: public List<Solicitudes> ListarSoli...
asked by 07.11.2017 / 14:56
1
answer

protect the unauthorized use of my DLL

Cordial greeting! I have a solution in Visual Studio which has 3 projects: MVC Web Project Desktop Project (WinForms) Project DLL: where it has the logic of the application. Project 1 and project 2 refer to project 3 (the DLL) and...
asked by 04.11.2017 / 16:52
0
answers

Buttons disabled after file download

After downloading an excel with the grid data all my buttons on the page lose the functionality (search button to refresh the grid with other parameters and download a new excel with other data, eg dates). I have tried to force him to refresh...
asked by 06.11.2017 / 11:40
0
answers

OnClick of a Button does not enter the ASP.NET C # event

I have a problem with a button, it has an OnClick event but it does not enter the function that is programmed in C #. protected void Page_Load(object sender, EventArgs e) { btn_agregarCentro.Click += new EventHandler(this.btn_agre...
asked by 06.11.2017 / 17:01
0
answers

Concurrent Access to a Session Start, is it recommended to use Threads?

I have a question, I hope you can help me, thanks in advance. I am working on a project, a WEB application hosted on IIS;  the approach is that I have a LogIn for the users, but the LogIn must allow a user to log in at the moment, so if two u...
asked by 06.11.2017 / 16:01
0
answers

Connection of a websocket is not kept open in MVC

I'm trying to create an application that uses websockets for various purposes. At the time, I started developing a chat that is the most common example and I require it for a small inter-institutional help chat, among other things that I plan...
asked by 31.10.2017 / 18:55
2
answers

Update data in a winform from a Database

I have a winforms application, which draws some controls inside a panel, obtaining some data from a database, and running in an endless while cycle with a time of 5 seconds between each query. the form is drawn correctly, and the data also match...
asked by 31.10.2017 / 22:13