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

3
answers

Avoid duplicate data in list

I need a list of musicians without repetitions, but it is bringing duplicate values, according to the amount of songs that each Musician has, how do I bring just one Musician? public ActionResult SelecaoMusico() { List<Musico> musico...
asked by 22.11.2016 / 04:16
2
answers

Visual Studio 2015 - Team Foundation - Error Asp.Net MVC project

Is anyone having trouble uploading an ASP.NET MVC project to Team Foundation? What happens is that I do the up, but when I go to run on another computer, it starts to give references errors not found I realized that the reference folde...
asked by 19.10.2016 / 19:54
3
answers

Avoid editing in the field

I am trying to do the following: the user types his / her zip, and then it is populated automatically, estado (select) cidade (select), rua (input) and bairro (input), when the user types his / her zip and for example...
asked by 16.12.2016 / 13:40
1
answer

Understanding the DDD Concept

Good, I'm starting a new application, relatively simple, and I want to structure it in the DDD concept. I read a lot on the internet, I saw many examples and meanings, but I would like to know more simply. Given the following structure...
asked by 07.12.2015 / 19:44
1
answer

View with 2 models within a ViewModel

Objective : Manipulate 2 models in the view using a ViewModel. I made a ViewModel to encapsulate the 2 models, but I can not use one of them. ViewModel: public class BoletoConfigViewModel { public Boleto Boletos { get; set; }...
asked by 25.01.2016 / 21:33
1
answer

Error returning JsonResult

I'm having trouble understanding this: When I click on the Datatable line to edit the Client data, an error occurs whenever the Client has a Contact or a Registered Address and this is very common. This is code that is triggered whe...
asked by 23.09.2015 / 14:39
1
answer

:: before does not work as it should

I bought a CSS and I'm trying to apply it to my site, the cass I bought has a validation scheme in the form where it circulates the form with a red line and places an X inside the text box. I will put an image here to be easy to understand, this...
asked by 22.10.2015 / 15:24
1
answer

Error "Access-Control-Allow-Origin header is present on the requested resource" [duplicate]

I need to insert an API on my site that provides the weather forecast for a particular city, however, the ajax request always returns the error in the browser console. Follow below: XMLHttpRequest cannot load http://developers.agencia...
asked by 07.08.2015 / 23:03
2
answers

@ Html.ActionLink and Url.Action are not taking the route of the controller annotation

I have the following method in the control: [Route("video/categoria/{categoria}/{page?}/{sort?}")] public async Task<ActionResult> Index(string categoria, int? page, string sort) { ... } My RouteConfig.cs: public static void Regis...
asked by 07.11.2015 / 02:05
2
answers

What is the difference between authorizecore and onauthorization

When we create an attribute of type AuthorizeAttribute We have these 2 properties to be overwritten. What's the difference between the two? Both seem to have the same function [Edit] The namespace of the cited attribute is System...
asked by 22.04.2015 / 18:11