Questions tagged as 'asp.net-mvc'

1
answer

Relationships with the Entity Framework?

Next, I'm modeling the domain class of a system and I'm having trouble understanding certain things of Entity Framework , so I hope you can help me by looking at what I'm following the idea of Code First : In a relationship of...
asked by 22.09.2017 / 19:47
1
answer

How to make an ASP.NET Core MVC application for Portuguese?

I would like to be able to make an application in Portuguese. I already did this with ASP.NET MVC 5 in a very simple way through a NuGet installation. But I did not find anything similar for the CORE version. I already used the configuration:...
asked by 04.06.2017 / 18:20
1
answer

Field without REQUIRED is mandatory, why?

using ExemploValidacao.Models; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Net.Mail; using System.Web; using System.Web.Mvc; namespace ExemploValidacao.Controllers { p...
asked by 28.03.2018 / 20:59
1
answer

Receiving System.Web.Mvc.WebViewPageTModel.Model.get returned null

I'm getting a null reference error and I do not understand why. Here is the error: System.NullReferenceException: 'Referência de objeto não definida para uma instância de um objeto.' System.Web.Mvc.WebViewPage<TModel>.Model.get retornou...
asked by 24.05.2017 / 22:55
1
answer

Return missing date x days to arrive

Scenario: Ciclos id name endDate (datetime?) Data: 1, primeiro, 05/10/2017 2, segundo, 15/10/2017 3, terceiro, 20/10/2017 4, quarto, 30/10/2017 With linq and lambda, I would like to return dates that are above the current date, but ar...
asked by 11.05.2017 / 22:35
3
answers

Contains within a list

I have a List of Assets that contains a list of Accessories I would like to filter all the Assets that the accessories (ID_ACESSORIES) are inside an int list. Follow the code; //Lista com todos os ID_ACESSORIOS que tenho que filtrar List...
asked by 08.03.2017 / 17:49
1
answer

Combobox editable with filter

I would like to know if there is a plugin or a tutorial teaching to create a combobox that allows, as you type in it, to filter the items, as in the image below: Note: I'm using ASP.NET MVC with C #.     
asked by 07.12.2016 / 18:24
2
answers

Action that returns PartialView not being called

I need to present a list of results by completing the form below, but the search is not displaying the result. The action in controller is not being thrown. @using (Html.BeginForm()) { <div class="form-group"> @Html.LabelFor(mode...
asked by 03.10.2016 / 17:26
1
answer

Generate report on Azure

I need to generate reports in an MVC application that will be hosted on Azure and I learned through this tutorial: Using the Report Viewer in ASP.NET MVC it is necessary to hire a Virtual Machine for the viwer reporter to work. From what I see...
asked by 09.10.2016 / 19:08
1
answer

Creating a Shopping Cart [closed]

I want to create a Cart, where I have the Products that I'm going to sell, the quantity and the total value. Anyone have an idea how I can start development? Just to clarify, it follows my Product class, which starts from a Menu: public cla...
asked by 13.10.2016 / 02:46