AJAX Calls in ASP.NET Core Razor Pages

AJAX Calls Razor Pages

Razor Pages is a new programming model in ASP.NET Core. Instead of the MVC model, this programming model is based on page routes. Each page is separated into two files: one for the backend and the other one for the frontend. Razor Pages only works with GET and POST methods. A page will contain two methods: OnGet and OnPost. Handle … Read more

The Best Guide to Enhance Your Career as a C# Developer

Guide Juniors

This is a step-by-step guide for C# junior programmers to enhance their programming skills. I have seen this Reddit post where a junior asks about what should he do to enhance his .NET skill. I remember when I was an entry-level .NET programmer and I had the same question several years ago. Malcolm Gladwell wrote about the 10000 hours rule. … Read more

Implement Identity On Existing ASP.NET Project

ASP.NET Identity

ASP.NET Identity is a .NET library that allows you to easily implement a user management system for your application. It offers out of the box the following: registration, login, two-factor authentication, external login providers, email confirmation, security roles, and claims. If you create an application from start, you have the option to choose to add the Identity. What if you … Read more

Generate strings from a Regex pattern in C#

Fare library - Generate strings from Regex

Regular Expressions (aka Regex) are popular because it lets validate your data.  Developers use them to validate input controls for emails, phone numbers, or usernames. In .NET we have the Regex class which can validate a string based on a pattern.  What if you want to generate a string from a pattern, instead of validating it. Then you can use … Read more

ASP.NET Minification using WebMarkupMin

WebMarkupMin Library

The minification process is one of the most important steps to improve the speed of your website. The minification goal is to decrease the size of the files and resources sent to the users. This process implies removing unnecessary symbols, white characters, and redundant code. It also means rewriting your code to take up as little space as possible. For … Read more