Questions tagged as 'asp.net-mvc'

1
answer

Change a JS Function to open two different Modal Bootstrap Windows - Asp.Net Core MVC

Currently, I have a Modal (modalGenerica) in my Index that generically opens the Create, Edit and Delete views. To open the Create and Edit views, there is no problem, since both open in a modal of the same "size", but that to open the view Dele...
asked by 15.07.2018 / 13:23
0
answers

Problems giving a RedirectToAction for view index and close window Modal Bootstrap - Asp.net Core MVC

I have a Create view that is opened as a modal view in my Index view. When I click on the "Save" button in the Create view, my controller sends the data to be saved and then close the modal and redirect it to the Index view. If the data is incon...
asked by 12.07.2018 / 02:37
0
answers

Make a free query using the entity frame MVC

I would like to bring a result of a days calculation using mvc with frame entity . My query would be this: select Notas_IdSoft, Notas_TipoLic, t.Notas_Validade, DATEDIFF(DAY, GETDATE(), t.Notas_Validade ) as Data from Notas as t...
asked by 12.07.2018 / 19:17
0
answers

Change Authorization ASP.NET MVC 5 redirect page and return to returnUrl

I created an ActionResult Access denied controller an error box is generated whenever the user does not have permission, and I have also created the UserPermission class that I will use instead of Authorize > . My problem is tha...
asked by 20.07.2018 / 13:51
0
answers

webRTC does not show video on iphone

Hello, I'm new to webRTC and I'm testing the code below that was copied from a website and did not work when I open the project in ASP.NET. The video opens with a webcam, in the site where I took the example the iphone recognizes the demos very...
asked by 20.07.2018 / 16:40
0
answers

Checking on page _layout.cshtml with Identity framework in asp.net core razor

I have the page _layout.cshtml I would like to access all Identity data to display certain part of the menu: @using Microsoft.AspNetCore.Http @using CronoParque.Utility @using Microsoft.AspNetCore.Identity @inject IHttpContextAccessor HttpCont...
asked by 18.07.2018 / 16:21
1
answer

Error performing Update using EntityFramework Core

I have a layered project using DDD and I'm having problems while doing UPDATE from a record of my PersonSituation class with EF Core. public Task Handle(UpdatePessoaSituacaoCommand message, CancellationToken cancellationToken) {...
asked by 08.07.2018 / 16:25
1
answer

Passing code to page cshtml asp.net core razor

How do I pass this code that is on a .cs page to a cshtml page. ApplicationUser user = await UserManager.GetUserAsync(User); This page is the layout, has no Model and no DTO. Thank you     
asked by 17.07.2018 / 20:59
1
answer

Mappings in .NET CORE, Fluent API - .HasForeignKey property with error

Good afternoon! I'm starting to develop a system in .NET, sort of in the way, so I'm learning as I'm building, but some errors are still not clear to me. I have the following code:         // class boat public string Nome { get; priv...
asked by 20.07.2018 / 20:22
0
answers

how to access a webcam in real time by asp.net mvc

I'm trying to access a webcam via asp.net. When I use IIS Express it works, but when I upload the application the system does not access. could anyone help? follow the code: var video = document.getElementById('video'); // Get ac...
asked by 21.07.2018 / 00:00