Questions tagged as 'c#'

2
answers

Encrypt password 50 characters in VARBINARY (8000)

If I encrypt a 50-character password in a VARBINARY(8000) field, does it occupy some extra space when being 8000 length? Or is it how VARCHAR ?     
asked by 09.06.2017 / 17:40
4
answers

C #: How to identify the first digit of each number in a vector to count how many numbers start the same?

Good day. I have this problem, I guess it's simple but I have not been able to solve it and I have one day in that, I have a program that accepts 10 numbers and enters them in a vector, but I need to know how many of these 10 start with th...
asked by 20.03.2018 / 01:00
3
answers

Remove relationships in select LINQ

My question is the next one, when executing this sentence in LINQ, it brings me the user that I require, but also all the table relations where it has been referenced by a foreign key in the DB, that is, if this user made 1000 sales are going to...
asked by 19.03.2018 / 15:19
1
answer

Statement in sql for a datetime

I have this fragment of cogigo public List<byte[]> selectAlarmas1(int numero) { try { cn = new SqlConnection("Data Source = PRUEBA; Initial Catalog = FUCS; Persist Security Info = True; Use...
asked by 17.10.2016 / 22:05
3
answers

How to declare a list of objects and then assign data? C #

I tried to find information about it and found that I can declare the list as follows: var list= new List"object"; but I do not take well the different types of syntax I find from examples on the Internet. How should I declare the list?...
asked by 17.05.2018 / 16:05
1
answer

"Session has not been configured for this application or request" in AspNet Asynchronous driver vNext

Greetings, I appreciate help with the next issue that is already killing my head. Using AspNet vNext (1.0.0-rc1-update1) I have had problems accessing session data from a controller for WebApi. Randomly (sometimes, sometimes not), this e...
asked by 09.03.2016 / 01:21
2
answers

"(400) Bad Request" when trying to connect with Azure Storage

I had a problem when trying to communicate with an Azure Storage storage service, the communication was made from a Windows Azure website to a Storage container. When the communication is made from a local website works perfectly. I tried updati...
asked by 17.12.2015 / 05:14
3
answers

Call a stored procedure from the Entity Framework

I'm using stored procedure, SQL Server, EF (code first). I have a stored procedure created in the database and I want to call it from my code. Stored procedure: CREATE PROCEDURE uspCreateLocal -- Add the parameters for the stored procedure...
asked by 07.01.2017 / 18:41
4
answers

How can I hide and show a Tab from a TabControl?

I am using a TabControl within a form designed in C #, this TabControl has two Tabs and I need to be able to hide one and / or display it depending on a status that arrives as a parameter from another form. I can not find a propert...
asked by 23.04.2016 / 00:46
1
answer

C # How to convert string to System.IO.StreamWriter?

Hi, I have the following problem, I want to write my csv but I put the accents wrong with strange characters. Then I want to add UTF8 but when I put it on, more Encoding.UTF8 already tells me that    Unable to convert string to System.IO.Stre...
asked by 10.08.2018 / 17:39