Questions tagged as 'c#'

2
answers

How to use like in linq C #

I want to obtain a record of an existing article in the database, what I do is that in a textbox I capture the text. The fact is that with == works for some articles, but for many of these, it does not generate a null reference, I want to...
asked by 25.10.2018 / 19:49
2
answers

Do not download the file to the browser using OutputStream.Write in ASP.NET WebService C #

I need to download a file located in the App_Data folder of my project, all the permissions are granted, I have the following code to download an .xlsx file by calling a WebService in C #, the result of the process is not error, but it does not...
asked by 29.10.2018 / 21:36
1
answer

How can I send an image (or more) from C # to my REST API and save it in mysql?

The following is my code and it works to send data from C # to my REST API and this information is stored correctly in the database: so I send the information from C #: using (var WC = new WebClient()) { WC.Headers...
asked by 31.10.2018 / 20:23
1
answer

Pass parameters from a view to a controller using href in Visual Studio

I need help to pass a parameter from a view to a controller. The problem I have is that when I send the data back to me a null data and not the one I am sending, it is assumed that through the "href:" I should be able to send the variable to the...
asked by 20.10.2018 / 02:35
1
answer

Problem when saving a file in a folder, which comes from type byte [] on the server when using WriteAllBytes in C #

I have the following function. private void guardarimagen( byte[] img) { var path = Server.MapPath("~/Images/prueba.jpg"); System.IO.File.WriteAllBytes(path, img); } EN localhost works fine, but when I tr...
asked by 11.10.2018 / 17:06
1
answer

Save Image in SQL Server using PictureBox

Good morning, I am working with an application within C #, which works as an inventory for the teams within the company. I'm working inside Windows Forms. What I intend to do is keep the records of each computer, with its respective image for...
asked by 15.10.2018 / 18:12
1
answer

How to change website URLs to be friendly?

At this moment I have to implement some SEO improvements in the portal that I developed, among them they ask me to change the URs so that they are more friendly. Is there any way to do it that does not involve changing all the names to the co...
asked by 08.04.2016 / 13:04
3
answers

Can you deserialize and map a Json without model in C #?

What happens is that I have a requirement, I have a Json but I need to capture the value, but I have to do it without using a Model, I have seen examples but they all manage models. Is it possible to deserialize without a model? At the mom...
asked by 30.10.2018 / 15:31
1
answer

Play audio in Unity in scene changes

How can I play an audio in Unity in such a way that when a scene change happens the audio keeps playing without being interrupted?     
asked by 17.10.2018 / 03:36
2
answers

C #, Windows Forms, How to implement two ComboxBoxes in a Form but WITH THE SAME datasource?

I have two comboboxes in a form with the same datasource: private void LlenarCbosCatalogo() { AuxiliaresCatalogoCtaList = CatalogoCuentaLN.ObtenerAuxiliares(); cboAuxiliar.ValueMember = "IdCatalogoCuenta"; cboAuxiliar.DisplayMembe...
asked by 01.10.2018 / 15:11