Validation Attributes in ASP.Net MVC

asplogo-square

In this article I’m going to show you how to use some of the validation attributes provided by the asp.net MVC framework that can be used to validate your models and you’ll see by the end of this article how easy to use them and especially how much time you’re going to save comparing with the explicit model validation way.
Before we start, you need to know that all of these attributes are defined in the System.ComponentModel.DataAnnotations namespace, so make sure to import it before starting to use any validation attribute Continue reading

Processing images in C# easily using ImageProcessor

Have you ever wanted to manipulate images from your C# program but don’t know how or may be you started writing your custom code from scratch and you found that it’s a lot harder and painful than it looks. From now on don’t push yourself too hard most of the work is done for you inĀ ImageProcessor

ImageProcessor is an open source library written in C# that allows developers to process any type of image on the fly from their application. It doesn’t matter if you’re writing a desktop or a web application, ImageProcessor will make processing image a simple and easy task to perform. Continue reading