Questions tagged as 'asp.net-mvc-5'

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

Does not appear Template MVC5 Visual Studio 2013

Install the vs2013 ultimate, update 1, update 5, english language pack, web developper tools .... And the MVC template still does not appear when I select in C # ASP.NET     
asked by 01.07.2016 / 14:38
3
answers

Get the value of a drop-down (select) with JQuery

I have this HTML code to create a combobox from an enumerated Enumerated public enum tipoFormasPago { [Display(Name = "Efectivo")] E, [Display(Name = "Tarjeta")] T, [Display(Name = "Paypal")] P } HTML code &...
asked by 26.05.2017 / 13:32
1
answer

Use of td and tr

What can I do to make the employee's name horizontal and not vertical as shown in the image Here is how I use it in td     
asked by 17.10.2018 / 17:05
2
answers

Pass htmlAttributes to EditorFor template

Good morning! I am working on templates for EditorFor for the different types of data, specifically int and double in order to generate them in text type, with a oninput that validates me not to enter incorrect informat...
asked by 27.04.2018 / 14:12
2
answers

Import data from CSV to database from MVC5 using a form

I am doing a project and at this moment I need to import data from a CSV file "Excel" Delimited by commas (,) certain information, I need that by means of a form they can upload the excel and that this excel is automatically imported in the tabl...
asked by 25.05.2017 / 17:56
1
answer

How to clean the cahe in Asp.Net Mvc5

I have an application made in Asp.Net mvc5 and every time I make a change, in my css or js files, I have to go clean the browser cache manually, as a developer there is no problem, the problem is when the application in production, I can not be...
asked by 28.11.2018 / 17:57
1
answer

Save UserID of a user logged in a specific colmna of the Data Base

I need to save the ID of the user who has logged in the column named "CreatedBy", but I can not write the correct query. Each time a "FitnessGoal" entity is created , the identity data plus the User ID will be saved in the DB: [HttpPost]...
asked by 17.08.2018 / 22:13