To better understand why we will ever need to use ASP.NET MVC instead of the traditional, user friendly ASP.NET WebForm’s to develop ASP.NET applications we need to look into some of its shortcomings and how they are addressed in ASP.NET MVC applications. ViewState Load ViewState maintains the state across postbacks; it requires that the data […]
Brief Overview of Controller and Action Methods in MVC
In this article we will see details of how the controller and action methods works. Whenever a new request comes into an ASP.NET MVC application it is handled by the controller class. It decides how to handle the request. Normally it fetches (or updates) the data from the model and renders the appropriate view to […]
Constraints in Generics
Constraints are used in Generics to restrict the types that can be substituted for type parameters. Here we will see some of the commonly used types of constraints. When we create a new instance of a generic type we can restrict the types we can substitute for type parameters using constraints. If we try to […]
Generics
Generics were introduced with the .NET framework 2.0 and have now become one of the most important and useful features of .NET. Generics use type parameters to specify the type argument when the type is instantiated. The client can specify the type parameter for the generic type while instantiating the type. So this causes reuse […]
Facade Design Pattern
Facade Design Pattern In this article we will discuss the need and the implementation of the Facade design pattern which is a structural design pattern. Facade simplifies useg of a class which has an otherwise complex interface. The Facade Design pattern is formally defined as “Provide a unified interface to a set of interfaces in […]