Questions tagged as 'c#'

2
answers

HTML Portable Editor for c # WinForms

My question is if they know of any control that allows editing HTML content, bold, images, tables ... but with the condition that it is portable to Mono (Windows / Linux) Thank you very much     
asked by 10.04.2017 / 14:38
4
answers

How to block asp c # button?

How can I block a form in .aspx ? What happens is that when my button registers I can press again and can register twice as the image, that is, I want that when the warning comes out I only have the option to press accept. This is m...
asked by 21.03.2017 / 21:14
2
answers

Problems connecting to SQL Server database [duplicated]

I have the following code: public static int Guardar(string codigo, string nombre, string apellido) { Clase_Conexion conexion = new Clase_Conexion(); int retorno = 0;//existe codigo. Producto repetido String sql="INSERT into Tab...
asked by 22.03.2017 / 20:01
2
answers

Alias in Linq in the Select new

var query1 = from ra in contexto.RADICACIONES join us in contexto.USUARIOS on ra.ID_USUARIOS_FK equals us.ID_USUARIOS join usex in contexto.USUARIO_EXTERNO on ra.ID_USUARIO_EXT_FK equals usex.ID_USUARIO_EXT...
asked by 18.04.2017 / 15:49
2
answers

Delete File or Caperta in C #

I'm trying to delete a file or a complete folder through C #, but I get the following exception.    Access denied to path '03 .png '. My code is as follows: String tempFolder = @"C:\AdjuntosChat\"; if (Directory.Exists(tempFolder)) {...
asked by 18.04.2017 / 15:16
1
answer

Convert pdf to byte [] and vice versa ASP.NET MVC

I have to save a PDF in a field of a table in SQL Server 2016. By informing me I have seen that the best way to do this is to convert it to byte []. The problem is that I do not finish to find a method that works for me, since I want to do it...
asked by 08.03.2017 / 12:54
1
answer

Redirect a Subdomain to my main application

I have a solution in Visual Studio 2015 with multiple MVC projects, based on areas, working correctly and redirecting from Test1 which is the main project, but I need to use subdomains to obtain information depending on this. My project is l...
asked by 19.01.2017 / 17:27
3
answers

Create Views in ASP.NET MVC 4

I am working with Visual Studio 2012, ASP.NET MVC 4, C #, Entity Framework - Code Firts, the IDs of the entities are autonumeric. The problem is when I create a view, it creates a ProviderId field in the view, but I do not need it since the I...
asked by 05.12.2016 / 00:23
1
answer

What is the difference between using the entity data model and the POCO template?

I would like to know what the difference is and what is better if I use the Entity Data Model template to generate the database model or use the POCO Reverse Generator template, just as it is better to install the entity framework dependencies f...
asked by 21.02.2017 / 23:48
1
answer

How to view a PDF file in the browser?

I have a project in the ASP.NET Web API which is consumed by a web application in html, I have a form in which I sent information and a PDF file, this is done with formdata , the PDF file is saved in a folder on the server with the origina...
asked by 11.11.2016 / 01:28