Why ASP.NET MVC framework

MVC framework provides a lot of benefits for web development. The main objectives of the framework are: 1. Separation of Concerns:  MVC provides a clean, organized and efficient organization of code. It is very helpful for a web application to scale in terms of functionalities and also promotes good design pattern. 2. URL Routing Mechanism: […]

Read More

Validations in Asp.net MVC

  Data Annotations help us to validate any properties in the model in Asp.net MVC. Data annotations are nothing but attributes which can be applied on model properties. For example, in the below code snippet we have a simple Employee class with a property EmployeeCode. This EmployeeCode property is tagged with a Required data annotation attribute. Which mean EmployeeCode is […]

Read More