Questions tagged as 'asp.net-mvc'

1
answer

Traverse all rows of a table Html and hide if any column 5 is empty

I do not have advanced jquery knowledge and I need to go through all the rows of a html table and hide the entire Line if the column from 5 JUS) is empty and refresh the sequence numbering of the first Id column, eg: I want to hide the...
asked by 17.06.2017 / 15:33
1
answer

Redirect to Action according to if

I have a Controller : [HttpPost] public ActionResult Login(string pUsuario, string pSenha) { usuario oUsuario = modelOff.usuarios.Where(p => p.usuario1 == pUsuario && p.senha == pSenha).SingleOrDefault(); if (oUsuari...
asked by 28.07.2017 / 21:18
2
answers

ASP.NET MVC Entity - Scaffolding for more than one table simultaneously

I've seen that an ASP.NET MVC project with C # has 2 magic tools that are EntityFramework and Scaffolding. With them it is possible in a few minutes to have all the registration features with in the database. Just bring the models with Entity an...
asked by 01.08.2017 / 19:50
2
answers

MVC in C # how the statements work

I have the code below, and to call the session that stores the user data, only once do I want to put it in the controller declaration. Doubt The variable usuarioLogado is per request or it can happen that user X calls the controller...
asked by 30.03.2017 / 16:08
1
answer

Error in my view

How do I play these messages in my view? Code that returns the messages: public ActionResult SaveInternalAuditRecord(InternalAuditRecord criticalAnalysisRecord, string idResponsibles, string idAuditors) { if (!ModelState.IsValid)...
asked by 19.07.2017 / 13:18
1
answer

When opening solution, folders with projects do not appear

I created a solution, based on the video of Eduardo Pires. I saved and went to do something else. Well, when reopening the solution, the folders with the projects do not appear, leaving only Solution indicating (0 project). How do I display my f...
asked by 27.02.2017 / 14:59
1
answer

Error while doing counter via C #

I'm trying to make a pendulum counter to my system, but it's giving error, at the time of calculating, could anyone help me? You are giving error in .Count as you can see in the picture below. MyControllerpublicasyncTask<ActionResult&g...
asked by 27.03.2018 / 15:22
1
answer

ASP.NET MVC with AngularJs and LayoutPage

I'm developing an application using the best of both worlds from Asp.net MVC and AngularJs. I make the bank requisitions with WEBApi which works very well. But now I've added an angular module on the page layout. The page layout ng-app works per...
asked by 13.01.2017 / 18:19
3
answers

Entity Framework 4 - Error Migrations: The type ... is not defined in namespace namespace.Map (Alias = Self)

I have a problem with my application mappings. [EDITED] Follow the complete DataContext Class: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.Entity; using System.Data.Entity.Mo...
asked by 05.12.2016 / 03:09
2
answers

Format date dd / mm / yyyy in a jquery DataTable.net

How do I format this date 2016-10-23T20: 30: 01.017 in a Datatable.net in the Brazilian dd / mm / yyyy format? Controller: This relevant snippet of code is where I populate the object that is in the format ok: dd / mm / yyyy hh: mm: ss...
asked by 24.10.2016 / 17:48