1
Is there a way to return an error in Asp net core only for a certain action without using the custom errors page?
I used to Response.TrySkipIisCustomErrors=true;
but in ASP.Net Core no longer exists.
1
Is there a way to return an error in Asp net core only for a certain action without using the custom errors page?
I used to Response.TrySkipIisCustomErrors=true;
but in ASP.Net Core no longer exists.
1
There is. A simple way to display error message to the user is by using the collection Tempdata, which has the function of storing temporary data that can be used in subsequent requests. (Obs. you can download the project on Github by the link https://github.com/mpaulohs/AspNetCorePnotify )
Let’s see how it looks in practice:
1- Create an ASP.NET Core Web Application. Select File > New > Project. 2- Create a Client class
3- Create a Viewcomponent Pnotifymessages
Browser other questions tagged asp.net-core
You are not signed in. Login or sign up in order to post.