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’m creating ASP.NET Web Application. I need in it to extract some ‘7z’ files.
I have encountered a strange behavior when trying to connect to Azure App Configuration with an Azure Identity from an ASP.Net Web Application. Current environment is .Net Framework 4.8, but the behavior is the same on 4.7.2 and 4.6.1.
So basically what I’m trying to do is making a parking ticket system. I’ve got two classes one that contains info for a Car and one for a Ticket. I want the system to show all the tickets a car registration has gotten. public class Car { public string registrationNumber { get; set; } public … Read more
I have a few older ASP .Net Framework (web forms and mvc) sites on an IIS server which run in an app pool which uses a custom AD account. Serving any static files (images, js, css) from the Content folder of the site has always worked fine – but this began failing a few weeks ago. All requests for static content return a 500 error. The dynamic content still runs fine. When I switch the app pool to use the built-in ApplicationPoolIdentity, then the static content is returned fine. I verified that the custom AD account has read access to the static files on file system. There are no messages in the event log and the IIS logs only show the 500 response with no details. As this works fine using the built-in account, I am assuming the static file handler is still installed and running as expected.
We are building a forum type web application, and we are tring to make the answers with most likes (and most dislikes) look different. The Answer entity has a Reactions property (list of reactions) that include likes and dislikes (those are differentiated with a boolean property, true for like, false for dislike). Is there a way to obtain the answer with most likes, and the answer with most dislikes, with a LINQ query directly? or we have to make a method that solves it?
Im using asp.net API from Connect Square to generate nonce and create a payment. My payment form is loading correctly generating a nonce but not creating paymentrequest. Here is the error response
Hi im making a reservation page in razor pages asp.net. On my page I have two drop downlist. One for the location other for the rooms of that specific location. I want to pass the value of that selected location to the function which shows the rooms (function is named showRoom()), so that the rooms will be shown depending on which location you selected. How do i do that with html? I tried something but didnt really work. Here is the html code
Here is my controller:
I’m using .Net 5.0 as backend and .Net 5.0 for client-side.