Building Custom Action Filters in ASP.NET MVC

ASP.NET MVC gives you a clean separation of concerns — but sometimes, you’ll need to execute certain logic before or after a controller action runs. For example: Instead of repeating the same code in every controller, Action Filters let you inject that behavior globally, per controller, or per action. In this post, we’ll explore what … Read more

Managing State in ASP.NET MVC – A Practical Guide

If you’ve been working with ASP.NET Web Forms, you might be familiar with ViewState — a feature that automatically remembers control values between requests. When you move to ASP.NET MVC, things change. MVC follows the stateless nature of HTTP, which means each request is independent. The framework doesn’t automatically preserve data between requests — you … Read more