
In this article, we will learn about Repository pattern which is mostly used to create enterprise applications. Repository pattern divides application’s UI, business logic and data access components into different layers that are easily maintainable and testable.

Data annotation in ASP.NET MVC are the attributes, which provide Server side validation and the framework also supports client side validation when we use one of the attributes on a model property. It resides in System.ComponentModel.DataAnnotations hierarchy.

ViewBag is a dynamic container to pass the information from the Controller to View. All the data is passed from the Controller to View via a ViewDataDictionary called ViewData. ViewBag is a dynamic wrapper around ViewData, so we can access ViewData information with the dictionary for syntax and Viewbag information can be accessed using dot notation.


In this article you will learn how to create Grid View Paging and Sorting in ASP.Net
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article