Questions tagged as 'asp.net-mvc'

0
answers

RadioButtonFor not presenting option checked correctly

I need to keep the radiobutton checked when the property VINC_ESTRAT_OPERA = 1 comes from the bank. However, all the controls are showing the last radiobutton arrived, regardless of the value. <fieldset> <legend>1. Possui víncu...
asked by 09.08.2018 / 16:58
0
answers

Can not find "locale.properties" file from PDF.js

I'm trying to solve the problems that show in the console log. I use this plugin PDF.js . Here the> is a simple project ready, only download and run project you will see the same problem. I've tried everything and I can not solve a problem...
asked by 01.08.2018 / 03:48
0
answers

Grouping with Lambda, ASP.NET MVC

I have a question here. I have an action that gets two parameters, two dates. this causes a list to be generated, except that in that list, the same item is being repeated. I wanted to be able to do a sum of money. To understand better, the sy...
asked by 03.08.2018 / 21:03
1
answer

The field Selling Price must be a number. MVC

I have a field, sale price, which in the model is this way: public decimal PrecoVenda { get; set; } In the ViewModel it looks like this: [Display(Name = "Preço de Venda")] [Required(ErrorMessage = "O campo {0} é obrigatorio.")]...
asked by 03.08.2018 / 20:54
0
answers

CS0234: The name of the namespace or the type 'Helpers' does not exist in the namespace 'System.Web'. Need an assembly reference?

I am creating an ASP.NET MVC project with SharpDevelop and when compiling, it opens the list with the project folders in the browser. But when I click on one of my Views .cshtml or even the HOME folder, the following error appears:...
asked by 09.08.2018 / 22:14
1
answer

How to make Asp.Net MVC application stop logging out, and stay logged in straight away?

I developed an application in Asp.Net MVC and this application when it is logged in and it takes some time without touching, when I am going to register, the system asks to log in again, I would like to know how to log in directly.     
asked by 25.07.2018 / 22:45
1
answer

Asp.net MVC form, no modal call after data validation

I tried to make the modal call through the ViewBag, but without success. I made a Debugg to see how the process was and in the final step that would appear the modal informing the user that "contains duplicate data", it does not execute. // C...
asked by 02.08.2018 / 16:31
1
answer

Types Conversion with Fluenti API in EF Core 2.1

I wonder if you can do the following conversion: public class Pessoa { public bool Ativo { get; set; } } public class PessoaMap: IEntityTypeConfiguration<Pessoa> { public virtual void Configure(EntityTypeBuilder<TEntity>...
asked by 02.08.2018 / 18:26
0
answers

Ajax with AntiForgeryToken does not pass data

I'm having trouble putting AntiForgeryToken on my date from json . Here is the code that I pass the information of my data to controller without problems. var todos_servicos = { ServicoFornecedor, ServicoDe...
asked by 28.07.2018 / 14:50
0
answers

Creating FK's with EntityFramework + Fluent-API - ASP.NET MVC

I have some questions about creating FKs with the Fluent API    For example: I have the class Cliente and Endereco , and the client can have more than 1 address, but the address can only belong to 1 client, so I would like to cre...
asked by 19.07.2018 / 15:36