Questions tagged as 'asp.net-mvc'

2
answers

JsonResult values are received by javascript but fields are not given value

javascript function receives values but fields are not receiving values. Controller function public JsonResult GetSequencia(DateTime dataAbate) { db.Configuration.ProxyCreationEnabled = false; var lote = db...
asked by 06.03.2018 / 01:02
0
answers

How to do interaction between InputText + Javascript between Controller and View in Asp.Net MVC

I have the following problem ( For better explanation we have attached image ). Image link Owner 1 arrives with 100 oxen; Owner 2 arrives with 30 oxen; Owner 3 arrives with 50 oxen. The procedure for these steers to be vaccina...
asked by 05.03.2018 / 22:29
1
answer

How to create List of a class inside another class and not be mapped in the Entity Frameworks

I have a class called Camera [Table("Camara")] public class Camara { [Key] public int CamaraId { get; set; } [Display(Name = "Nome")] [Required(ErrorMessage = "O Campo {0} é requirido!")] [StringLength(50, MinimumLength...
asked by 13.03.2018 / 16:01
0
answers

Custom Aspnet Identity and RoleManage

My application is based on using the primary key type int in Aspnet Identity as described here . The problem is when it comes to creating a user. In the original template, I added a property in the RegisterViewModel, associated the Roles in a D...
asked by 12.03.2018 / 14:38
0
answers

Display Null Variables in a Modal

Personal I have a following problem. I had to create an audit page of my system, where it displays the edits that were made on a certain form. When a form is populated for the first time, it shows all form variables, as you can see in the...
asked by 05.03.2018 / 16:35
0
answers

How to set a color of an Html.DisplayFor?

In my application I have this Html Helpers : @Html.DropDownList("estado", new List<SelectListItem>{ new SelectListItem {Text="Pago", Value="Pago"}, new SelectListItem {Text="Pendente", Value="Pendente"} }, "Selecione o...
asked by 02.03.2018 / 23:00
0
answers

Error the best overload for '.ctor' does not have a parameter named 'throwifv1schema' with entity

I'm having an error that is not making I can not compile the project. I am using ASP.NET C # entity framework code first The error indicates the best overload for '.ctor' does not have a parameter named 'throwifv1schema' using System.D...
asked by 07.03.2018 / 12:53
0
answers

Customizing a DropDownListCom Icons - Asp.net MVC

I need to change the " <select data-plugin="selectpicker"> <option data-icon="wb-briefcase">Pessoa Jurídica</option> <option data-icon="wb-heart">Pessoa Física</option>...
asked by 10.03.2018 / 20:27
1
answer

Migrating from a Local DB to MySQL DB

I'm developing an ASP.NET WEB page with MVC and I made all the model, control and display settings in Visual Studio 2017 and it created a Local BD by SQL Server LocalDB to store the data but there is an automated function that migrates the table...
asked by 01.03.2018 / 12:27
1
answer

Migrations Asp Net MVC

I made a project first by feeding my application ASP.Net MVC to a SQL Server database that I set in the web.config (connectionString) file. Then, following some courses I did, I started using Migrations to update the database tables. P...
asked by 22.02.2018 / 18:51