How to use ActionFilter once to perform on all controller
I have a situation where I need one Filter to be executed before every api call but in dot net you have to write that filter above every controller.
[ActionFilterName].
I have a situation where I need one Filter to be executed before every api call but in dot net you have to write that filter above every controller.
[ActionFilterName].
I want to connect Django project and .NET core project because I want it take advantage of good library available in python so I will make one strong .NET core project.so through some lite on it.
I am new to programming. How do I pass the value of a variable to another method? The code variable gets a value, but when the method exits, it is reset to zero. I need to set the visitcode variable to the value of the code variable. I’ve tried declaring a code variable in the public class, but it doesn’t work either. i did it like this
I’m currently trying to port an ASP .NET Core 3.1 application to .NET 5.0.
Hi im trying to make a notification system. Basically when i add a new row, a notification will be shown on my notificationspage realtime (i use signalR with razor pages asp.net). But for some reason when i get on that page, i get these errors: Unable to cast object of type ‘System.DBNull’ to type ‘System.DateTime’.
at myWebApp.Controllers.SpeedListener.GetAlarmList() in myWebAppControllersSpeedListener.cs:line 83
at myWebApp.Controllers.SpeedListener.ListenForAlarmNotifications() in myWebAppControllersSpeedListener.cs:line 43
I am currently loading two Orders and Colors tables, I wanted the Colors table to list the items that have the ID equal to Orders. For this, what occurred to me was to assign the IdOrders values to a variable and compare it with my IdOrders (in my table Colors), but it is not possible to assign the database’s balance to my variable
I am creating a gridview that allows the user to enter the date (example Date of Completion) of a specific artifact (There are multiple). If I try to enter a null or empty value it crashes. I have looked high and low for an answer to this. The data they enter is updated to a sql server database. I have switched the data back and forth between between date and nvarchar. Also, the value has to bind so it updates the database in the ASP.net.
I am quite new to Blazor and I am trying to understand authentication and authorization. What I did so far is reading the docs Authentication and Authorization in ASP.NET Core Blazor and Rolebased Authorization in Asp.NET Core. I managed to get authentication running, but I am struggeling with authorization. I would like to store every windows user who is visiting my server side app in a database and say User1 is Admin, User2 is Editor etc. and showing users diffrent areas of pages.
I have a standard ASP.Net Web API Project with a DB setup that looks something like this:
I’m creating ASP.NET Web Application. I need in it to extract some ‘7z’ files.