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

0
answers

Application Cache is deprecated in non-secure contexts - Modernizr

I use this library: Modernizr . The BundleConfig.cs class : // Use a versão em desenvolvimento do Modernizr para desenvolver e aprender. Em seguida, quando estiver // ready for production, use the build tool at https://modernizr.com to p...
asked by 11.07.2018 / 16:42
0
answers

Entity Framework 6 Many to Many: PK validation problem when adding

Good morning guys, I'm breaking my head here and I still can not fix it. I have two entities, PropertyDetails and PropertyDetails, with relationship n to n. I have been populated, so when I am going to register the ImovelDetalhe, I select thr...
asked by 13.07.2018 / 17:55
1
answer

How to display messages (Summay) for the user in the Index view

I have a View Index and via the Create view is opened in modal form from it. When I open the modal Create, fill in the fields and click on the save button the modal remain open and the summary displays a msg at the top of the screen informing th...
asked by 11.07.2018 / 03:05
0
answers

Error compiling Asp.net Core application MVC: "Asp.net Core" does not exist

Before I formatted my PC and reinstalled VS 2017, my project compiled normally. When I open the project, it restores the nuget packages, but my "Dependencies" fields get alert indicating problem. My project is DDD and has several layers of dot.n...
asked by 21.06.2018 / 23:33
1
answer

Logoff after editing a User Role

I'm working on an asp.net-mvc project and would like to force the user to log off after editing a role belonging to the user, using asp.net-identity public async Task<ActionResult> Edit(string id) { if (id == null) {...
asked by 18.06.2018 / 18:30
0
answers

Field checkbox (Binding ViewModel) does not work in View - Asp.net Core MVC

I have a bool field "System Default" in which a Binding is done with its respective ViewModel. Whenever the view is loaded, it looks like false but when I go with Break Point, ViewlModel's field is true ... <divclass="col-md-5"> <...
asked by 09.06.2018 / 21:24
0
answers

handlebars duplicating html

I'm trying to create a condition for grouping the controls in a form-group , but handlebars is duplicating the components on the screen. What I want is that when FormGroupBegin is equal to true it inserts <div...
asked by 01.06.2018 / 19:09
1
answer

Error when running Dropdownlist in ASP.Net MVC

I'm having the following error at runtime: System.InvalidOperationException: 'There is no ViewData item of type' IEnumerable 'that has the' SexID 'key.' Follow the code below: Model: [Required(ErrorMessage = "O campo sexo é ob...
asked by 29.05.2018 / 03:53
1
answer

Format date using HtmlHelper

I need the date of my model to be displayed in the "dd / mm / yyyy" format in my view, today it displays in the format "yyyy-mm-dd". Here's the snippet of my code: @Html.DisplayFor(modelItem => item.DataNascimento) How to implement?    ...
asked by 30.05.2018 / 20:14
0
answers

How to call function together with interpolation from x-handlebars-template

I'm trying to call a function to change the type of my imput. <input type="getTypeHtml({{tipoDeDado}})" function function getTypeHtml(tipoDeDado) { var typeHtml = 'text'; switch (tipoDeDado) { case 0: t...
asked by 24.05.2018 / 18:22