Questions tagged as 'asp.net-mvc'

2
answers

Entity Framework 6: Error in Provider

I'm using EF6 Code First. When performing the "Update-Database" the bank is created normally. But entering the data throws the following error:    No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.Sq...
asked by 29.11.2016 / 15:28
2
answers

Remove Sets from EditorFor

I created my class with type int [Required(ErrorMessage = "Preencha o Numero")] [DisplayName("Numero")] public int Number { get; set; }    Codeofview:<!--Number--><divclass="alinhado col-md-4"> <div class="fo...
asked by 13.12.2016 / 03:48
2
answers

Generic error Object reference not set to an instance of an object

I've looked all over the forum and I did not find an error that matches mine. If anyone can help me. I'm having this error:    Error: Object reference not set to an instance of a   object. Linha 1: @model MimoLacosAdm.Models.CATEGORIA Lin...
asked by 18.11.2016 / 15:18
2
answers

Where to put the View Model rule

I need to create a View Model to use on the screen. I'm not sure where to put the button rule to be enabled or not. I thought of this implementation, I wonder if it's the best way. Another idea I had was to put the builder content in a...
asked by 05.12.2016 / 16:19
1
answer

Redirection with Timer MVC

I have a problem that I'm breaking my head to solve. I'm building an MVC site and would like to make an opening page with Timer rolling like this image: Solong,beauty.TheproblemisthatIwantitwhenIfinishthiscounteritredirectstothehomepage.H...
asked by 08.08.2016 / 22:00
3
answers

DropDownListFor how to use?

I'm having a question on how popular and then get the selected item from a DropDownListFor , I'm using DDD and Entity Framework architecture. In the case here my class ServiceProviderViewModel has to have relationship with other...
asked by 11.05.2016 / 21:00
2
answers

How to align a checkbox component vertically in the center of the row

How do I align a check box vertically in the center of the row? My project is asp.net core mvc. input[type="text"], select { /*font-size: 13px;*/ } .selectClass { /*font-size: 13px;*/ } label { /*font-size: 13px;*...
asked by 26.08.2018 / 22:01
1
answer

Database CodeFirst Entity Framework, 1-0..1, 1-N

I have 3 tables and need to relate them via code (Code First) Iwouldliketoknowhowtodothis.Ialreadyhavethefollowingcodesfromthetables:TbHistoricoAnalogicousingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.IO;usingSystem.Com...
asked by 27.03.2017 / 19:04
1
answer

How to keep MVC application running in IIS Express (in Visual Studio) after stopping the debug?

I'm doing a project in ASP.Net MVC. On the company machine I run the project once (F5), stop the debug and continue accessing the application pages normally. On my personal machine if I stop the debug, the page says that it is not possible to...
asked by 06.03.2017 / 23:57
2
answers

Modifying value of my IsAuthenticated in AngularJS

When the token is different from null, my IsAuthenticated must be positive, app.controller("HomeCtrl", function ($scope, $location) { let token = localStorage.getItem("token"); $scope.user = JSON.parse(token); if (token === null)...
asked by 14.03.2017 / 18:33