Microsoft.Net

11 commandments of object-oriented programming (OOP)

1. Software entities (classes, modules, etc) should be open for extension, but closed for modification.  (The open/closed principle — Bertrand Meyer) 2. Derived classes must usable through the base class interface without the need for the user to know the difference.  (The Liskov Substitution Principle) 3. Details should depend upon abstractions.  Abstractions should not depend… Continue reading 11 commandments of object-oriented programming (OOP)

C#.Net · Microsoft.Net · Programming

Different Types of Constructors in C#

A constructor is a method in the class which gets executed when its object is created. A constructor is usually used to initialize data members of the class. There are four different types of constructors: Default Constructor When you do not declare any constructor, the class will call its default constructor. The default constructor is a parameter… Continue reading Different Types of Constructors in C#

Microsoft.Net

What is Connection Pooling in Asp.Net ?

– Connecting to a database server typically consists of several time consuming steps.Most application use only one or a few different configurations for connections. – This means that during application execution many identical connections will be repeated opened and closed. – To minimize the cost of opening connections ADO.NET uses an optimization technique called Connection Pooling. – Connection… Continue reading What is Connection Pooling in Asp.Net ?

Microsoft.Net

Application State, Session State and View State

Web applications are stateless by nature, which means that you don’t have a native way to handle state. Even though no native way exists to handle state as per the HTTP protocol, modern application frameworks (like ASP.NET) provide a lot of features in this area. The typical ASP.NET application contains different state management techniques that… Continue reading Application State, Session State and View State

Microsoft.Net

Page Life Cycle in ASP.Net

Within Each stage of the life cycle the page raises Events that you can handle to run your own code. These are as follows 1-PreInit Raised before the Initialization stage begins Here the Ispostback property is checked to determine whether the first time the page is being processed. 2-Init Raised after all the controls have… Continue reading Page Life Cycle in ASP.Net