How do I inject a DBContext into a service in Startup?
I have a service that I want to use in a .Net core Blazor app.
I have a service that I want to use in a .Net core Blazor app.
The library I use is microsoft.excel
I have a .NET Core 3.1 ASP.Net project using razor views.
For a project i’ve been trying to upload a file from my view to my controller action.
However, for some reason the action is reached but for the file i receive a null.
We have a .net WebApplication, that doesn’t need to install anything on the release server (only bin dlls needed). The problem is we are not finding a real solution avoiding Crystal Report Runtime installation: seems that the only way is installing runtime.
I am trying to display a string in a web page with delay and the following is what I tried but the page does not show until the delay is expired.
I write a custom IdentityUser which is AuthUser.
I’m trying to understand the code block below. Everything is fine until the third argument of the tokenHandler.ValidateToken(...) method which is out SecurityToken validatedToken.
To be more specific let me explain what did I encounter.
I was trying to submit a List of data from view to controller. I was able to submit some data successfully without any problem. But the problem arises when the data is more than around a list of 250 items and more than that. When I click a submit button it passes a NULL value when I debug it. There is no error with my code because I have submitted a list of 100 items to the controller without any problem. I guess there will be something that I have to specify so that It will also send a large number of lists.
Here I’m not using ajax or any javascript code to submit the form. I’m submitting it directly to the controller using post request.
I want to add a button that triggers the action on the Controller inside the razor CSHTML for my ASP.NET project.