Questions tagged as 'c#'

1
answer

Session variable: Error: Object reference not set as (...)

Good! In a previous question I wanted to know how to keep a variable for the whole site and be able to use it when needed: Previous question But now I'm getting this error very often ... I tried this and it does not work, among many o...
asked by 02.11.2017 / 14:35
1
answer

Get the file of an input type file

Hi, I want to get the file from an input file. I do not want his name, nor his properties if not the file as such, and then upload it to a repository on my server. But I think I'm doing something wrong with my Js . I would be infinitely grate...
asked by 24.10.2017 / 17:27
1
answer

TCPListener C # capture the values received by it.

I need to make an application that saves the log of a Telnet made to ip 10.123.12.123, to give an example, with a port 1234 for example too. The problem is that looking at examples I can not understand how the socket class works, I do not kno...
asked by 18.10.2017 / 08:42
1
answer

Oledb + excel + HDR = NO. How to make selects?

The thing is that I want to make Selects in Excel, in any possible way, I do not value interop since the sheet is dynamic, one day it can have 340 records, another day 20. What I'm trying to do is something kind: Select count(*) From [Sheet...
asked by 12.12.2017 / 16:49
1
answer

How to know if a stored procedure that is executed within another procedure, returns an error, exception or empty from C #?

In this code I show only one (EXAMPLE) where I have a Stored Procedure and within it I get data from another Procedure, How can I capture the value that returns this procedure or the output values (sp_SearchTurn) before getting the one that re...
asked by 11.12.2017 / 20:48
1
answer

there is an overload for 'OnKeyDownHandler' matches the delegate 'KeyEventHandler'

I have the following method that has the OnKeyDownHandler event and I can only send it two parameters and I want to send it a list as well (FileInformation FilesList) private void OnKeyDownHandler(object sender, FileInformation FilesList, KeyE...
asked by 02.10.2017 / 16:14
1
answer

How to fill a table in asp.net mvc4 with ajax?

I'm doing a query to an api with asp.net, the query is well done and everything but I have a problem filling a table with ajax, I could not see the data you send me here the code c # public async Task<List<Sto_TraerCaracterizacionResp...
asked by 02.10.2017 / 17:49
1
answer

Make input (textbox) appear, after selecting a certain item in a select MVC C #

Good morning, The idea is that when selecting an item of a select, I see 2 input for the information entry. Mvc does not work with runnat="server", nor can I use visible or disable (or at least I do not know how to use it). I use VS 2013, MVC...
asked by 27.12.2017 / 13:36
1
answer

How can I convert this query from SQL to LINQ

SELECT STUFF(( SELECT ','+EXC_Nombre FROM Bloqueos as B, Excursiones as E Where B.BloqueosId = 3 and E.ExcursionesId IN ( SELECT [BLE_ExcursionId] FROM [BloqueoExcursions] Where BLE_BloqueoID = 3) FOR XML PATH('')...
asked by 21.09.2017 / 00:44
1
answer

KendoUI template for numbers

Good I'm making changes in Editor Number that brings KendoUI for Asp.net MVC but I can not get these reflected in the views, the properties are of type int , inclusive I put only a H1 only with a legend and even...
asked by 01.09.2017 / 23:05