All Questions
Tagged with asp.net-core-3.0 asp.net-core-mvc
56
questions
-1
votes
1
answer
92
views
Get varied columns from in Entity Framework 3.0
I have an ASP.NET Core MVC solution.
I tried to get dynamic object and uncertainly column numbers and types from a stored procedure.
I prepared the stored procedure, but I couldn't find a solution ...
2
votes
1
answer
576
views
ASP.NET Core 3.0 MVC update model with list objects - add object
I have the following classes:
public class Invoice
{
[key]
public Guid InvoiceID { get; set; }
public string Name { get; set; }
public List<Invoice_item> Invoice_items { ...
0
votes
1
answer
279
views
Map two identical models, nested with automapper
I did some research but I couldn't find exactly what I wanted.
I have an endless menu. I have a MenuDTO and a MenuViewModel that I use for this menu. I had no problem matching between model and DTO, ...
0
votes
0
answers
201
views
How we can ignore writing file contents in RequestResponseLoggingMiddleware AspNetcore3
Is this correct way when I don't want to log the file data using the given condition, that the contentType is application/json or any other way is there to skip writing the file contents?
if (context....
2
votes
1
answer
888
views
How can I make a TagHelper render only plain text with no parent tag?
How can I stop my TagHelper from rendering an outer tag?
e.g. I want something like:
<title>
<translate>LoginPageTitle</translate>
</title>
...so the tag helper can get ...
1
vote
1
answer
40
views
How to use a multiple models / contexts (routed by Id) in a View?
This is the code from the View
@model BalanceSheets;
<tr class="row100 body">
<td class="cell100 column1"><bold>@Html.DisplayNameFor(model => model.BalanceSheet2019....
1
vote
0
answers
309
views
Integrating React to an existing ASP.NET Core MVC web app
I have an existing ASP.NET Core MVC web app that I created with .NET Core 3.0.
I want some parts of my application to be single page app - so how do I integrate React into an existing ASP.NET Core ...
2
votes
1
answer
2k
views
ASP.NET Core populate model only once for all views
I'm new with ASP.Net Core (3.0 in this case) and I´m trying to create a menu that is visible on all views of a WebApplication, is created dynamically and must be populated only once. Below i explain ...
4
votes
1
answer
10k
views
Active directory authentication by LDAP in asp.net core 3
I’m implementing asp.net core 3. I want to create a login page for users who are in the active directory using LDAP.I can not find any exhausting guidance for asp.net core 3 through which I can get ...
4
votes
3
answers
4k
views
How to correctly resolve services to use in the ConfigureServices() in ASP.NET Core 3.1?
I have an ASP.NET Core 3.1 based app. During the app startup, in the ConfigureServices(IServiceCollection services) I want to register my services. But during configuring services, I want to boot the ...
2
votes
1
answer
5k
views
Call a function on button click in Blazor/Razor - ASP.NET Core 3
I just started learning ASP.NET Core and I was following the YouTube tutorial from Microsoft (https://www.youtube.com/watch?v=wA-3FA2kbpA&list=PLdo4fOcmZ0oW8nviYduHq7bmKode-p8Wy&index=11) and ...
5
votes
2
answers
3k
views
Using nameof() with Url.Action() and async methods in ASP.NET Core 3.x MVC
Let's say I have a ASP.NET Core 3.0 MVC application, which features a simple controller containing two actions and using attribute based routing:
[Route("home")]
public class HomeController : ...
0
votes
2
answers
1k
views
ASP.NET Core 3.0 MVC CRUD for object that contains list of objects
I have the following classes:
public class Folder
{
public Folder()
{
Documents = new List<Document>()
}
public string Name { get; set; }
public List<...
1
vote
1
answer
378
views
Call script from Server side in asp.net mvc core 3.0
I'm trying to open bootstrap modal from server side in asp.net mvc core 3.0 but unable open getting error
ViewBag.RegisterStartupScript(this, this.GetType(), "$('#modalRegisterForm').modal('show')", ...
2
votes
2
answers
5k
views
User.Identity.IsAuthenticated = false after login successfully mvc core 3.0 with web api
this is the image of the problem.
my login function in the API
public async Task<object> Login([FromBody] LoginDto model)
{
var user = _context.Users.FirstOrDefault(...