Questions tagged as 'asp.net'

0
answers

Add deleted files at the time of publishing ASP.NET Core

In my Asp.Net Core project I have some files excluded from the project. OnlywhenIpublishthesefilesdonotappearinthewwwrootfolderoftheproject.<ItemGroup><NoneInclude="wwwroot\Features\**" CopyToOutputDirectory="Always" /> <!--...
asked by 01.10.2018 / 20:03
1
answer

Redirect to login screen constantly ASP.NET MVC

Constantly while browsing the site the user is being redirected to the login screen. I myself navigate several screens by clicking the menus and randomly the system goes to the login. I already set the timeout of the session with a fairly high t...
asked by 23.09.2018 / 22:40
0
answers

Two ViewModels in a View

I have a problem, let's explain: I have a page called Index where I render all clientes of my database in a table, in that table there is an delete button that opens a Modal de Confirmação that creates a Form with...
asked by 25.09.2018 / 15:16
1
answer

Internal Server Error - IAuthentication

I have the problem presented below and I do not know how to solve it, the system is complaining that it can not access my IAuthentication class. The following error appears below. Belowmycontroller'scodeusingSystem.Linq;usingSystem.Thread...
asked by 22.09.2018 / 16:46
2
answers

API request not working in ASP.NET Core 2.1

I'm having trouble testing my end-points with the post and asp.net core 2.1.    Controller Base public class ControladorBase : Controller { protected IMapper _Mapper; public ControladorBase() { } public ControladorBa...
asked by 28.09.2018 / 18:00
0
answers

Problems removing items from a ListViewModel when the row is removed using JavaScript

I have a contact list that is loaded dynamically using razor and Javascript to remove the rows and reorder the positions of the fields. The problem occurs when I click the delete record button and delete all the contacts (I send an ajax request...
asked by 19.09.2018 / 01:57
1
answer

Name property does not work using Razor HiddenFor

I am creating several fields dynamically using Asp.net Razor and for this I am passing the index to a partial view and setting the name property of each field. Everything is working fine with all fields except Id and PersonId which are built usi...
asked by 18.09.2018 / 02:36
1
answer

X.PagedList.Mvc with Core and Bootstrap 4.0

How to use X.PagedList.Mvc with Core and Bootstrap 4.0 , and thus create a full automatic page.     
asked by 24.09.2018 / 19:47
1
answer

How to call my Asp.Net MVC view with ajax

I'm starting my studies with Asp.Net MVC and I'm having trouble getting a view from the main menu. I have an initial "_Layout" view with the following menu item: <li> <input type="radio" name="tabs" class="rd_tabs" id="tab3">...
asked by 23.09.2018 / 04:51
1
answer

Accessibility inconsistent: parameter type "value" is less accessible than the "value" method

   Inconsistent accessibility: parameter type "IClientManager" is less accessible than the "ClientController.ClientController (IclientManager, UserManager)" method Controller: public class ClientController : Controller { private readon...
asked by 18.09.2018 / 18:47