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

1
answer

Routine to download and unzip zip file on the server itself

I need to develop a routine on my site (ASP.NET MVC) that will download a weekly zip file from another server and unzip it on my own hosting service. This routine can be triggered via a button that checks the file's availability and executes...
asked by 30.10.2017 / 21:58
1
answer

A specified Include path is not valid. The EntityType 'Model.User' does not declare a navigation property with the name 'Connections'

I'm following this example to maintain connection and user information in a database. Then I created 2 tables: dbo.User: dbo.Connection: These2tablesaboveareverysimple.Ijustcreateditasaprimarykey.SoIcreatedanew"ADO.NET Entity Dat...
asked by 14.03.2017 / 07:58
1
answer

Uploading images in asp net core 1.0

I'm new to .NET, I learned in a course in asp net mvc 5 so I would need to take that upload code and transform it to asp net core if I can help. I'm grateful. [HttpPost] [ValidateAntiForgeryToken] public ActionResult Create([Bind(Inclu...
asked by 04.03.2017 / 02:25
1
answer

Image stored in the bank is not being displayed in View

I'm trying to display an image that is stored in the database. When the Photo field (of Image type) of the table is null, I display a default image that is stored in the directory. The problem is that the images coming from the database are not...
asked by 06.11.2015 / 15:16
1
answer

View passing date to Model in wrong format

I am using Bootstrap-Datapicker as the date field on my form and globalizing with moment-with-locales . The configuration I used is as follows: $('.datetimepicker').datetimepicker({ locale: 'pt-br', format: 'L' }); T...
asked by 14.11.2015 / 21:41
1
answer

Message Waiting for the save button

Hello, gentlemen, I'm having trouble putting a message waiting for the user when he clicks the save button and waits for the server to return. I'm using Jquery Dialog and Partial View to load an html from the server inside a div. Anyone have an...
asked by 11.02.2016 / 21:16
1
answer

How not to lose the data included in the Claims in the revalidations of Cookies?

I have an application that I need to control the access of the users that are according to the profile of each one. Empresa , Filial . In the User entity I have added the fields referring to these two other entities and in them w...
asked by 29.09.2015 / 15:32
1
answer

Question with asp.net MVC parameter passing

You are calling the controller but you are not calling ActionResult, I have my view: @model IEnumerable<Generico.Dominio.TB_MENU> @{ ViewBag.Title = "Index"; } @Html.Partial("_navbarInterno") @Html.Partial("_PartialLogin") <...
asked by 28.12.2015 / 23:18
1
answer

Load DataTable with Jquery and MVC 5

Good day !, I have read some articles on DataTables.net, for example: DataTables.net - Exemples index Loading tables with json using DataTables Using jquery DataTables with ASP.net MVC 5 but I can not load the data in the vi...
asked by 13.09.2015 / 17:28
1
answer

How NOT to cascade records with 1-n relationship using Entity Framework?

I have a table Menu which can have many Categories and these Categories can only have a Menu : public class Menu { public int Id { get; set; } public string Name { get; set; } public virtual ICollection&l...
asked by 20.08.2015 / 20:07