[ASP.NET Core] Auto Anti-forgery Token
There is a way to automatically apply ValidateAntiForgeryToken to every Post Action in your controller
There is a way to automatically apply ValidateAntiForgeryToken to every Post Action in your controller
Through my whole life getting to know computers, I also got to know the concept of cracking. Everyone around me cracked software, so why shouldn’t I?
Today I’m proud to be running entirely properly licensed products, having replaced most of the licensed software with equivalent free software. It’s still less convenient, less smart and less pretty than the paid software, but it is the work of a whole community of developers, and the special part is how extremely fast it updates
In a recent project at work I was stunned to realize that:
LINQ and Entity Framework don’t support querying on properties computed from other fields
So what do we do now? Luckily there is still a way
Are you using Entity Framework with ASP.NET MVC, along with client-validation?
For each ```DataAnnotation`` attribute you have a different error message, and you stuff them all into a Resource?
There are a few ways to work around some of those drawbacks ;)
ASP.NET Core introduces an extremely natural way to build input, label and a few other tags with the asp-for keyword; they are called tag helpers
You can also create your own tag helpers to render whatever tags you want
If Visual Studio Community feels too heavy but you still want to build websites with asp.net targeting the .net framework, why not use VSCode?
Ironically, OmniSharp doesn’t support .net core 2 in vscode yet, but this post shows you how to get past that limitation
Note that this only works on windows
One of the most mysterious things when building websites with ASP.NET is the ASP.NET Identity system, also developed by Microsoft. With quite a lot of hardcoding, plus many complex requirements around users and roles, Identity has bloated to an unbelievable size and is a tough bone to chew for anyone new to ASP.NET
In this tutorial, I will guide your through on how to install wordpress on a container of docker. The same step can be use to install wordpress on an acture Ubuntu machine, with some small changes
Imagine you have a list of items in your ViewModel
What if you want to let the user add a new item, or edit any item in the list?
After reading this post you’ll know how
You are probably very familiar with the EditorFor control, but it only renders for the data types it supports. What do you do if you want to extend EditorFor to render your own data types?