The underlying connection was closed: The connection was closed unexpectedly

"The underlying connection was closed: The connection was closed unexpectedly." This exception can be avoided by checking- 1) The return type and make sure it is serializable. and 2) Make sure your Enum values are matched with the values stored inside tables. This is the very critical situation because you don't expect it. [More]

InvalidOperationException could not Find UpdatePanel with ID

"Sys.InvalidOperationException: Could not find UpdatePanel with ID ''. If it is being updated dynamically then it must be inside another UpdatePanel."
Generally this error comes when you are trying to update an UpdatePanel from code behind and that UpdatePanel is inside an element (parent) that has hidden visibility.
Some techies suggest you to use another UpdatePanel as a container of your this UpdatePanel. Keeping in mind that UpdatePanels are the region like PlaceHolders and not like asp.net Panel element. [More]

Data Types in C-sharp

C# language is very rich in terms of Data Type support. I have drawn a simple Drawing on its data types which explains itself. [More]

System.Web namespace

The System.Web namespace contains the important base level ingredients for ASP.NET applications. System.Web namespace is an important base for Web Form user interface and web services.
Use of Built-in Objects like Request and Response are very common and widely used. We directly write them without creating objects as they are built-in objects.This namespace has following built-in Objects : (1) Request (2) Response (3) Server (4) Application [More]

Difference between Interface and Class

Interface is more popular and used in single-inheritance class model languages. There object's interface is used by making instances of objects. The languages which supports multi-inheritance class model, there classes & different methods are used instead of Interface. In C#, class doesn't support multiple inheritance and Interface is used to get the functionality of class multi-inheritance. [More]

Null-coalescing and Ternary operator in C#

Null coalescing operator in C# comes under binary operators and used for checking null. It works fine with both types: reference types and nullable types. One more important point regarding this operator is - it is right associative operator like our assignment, and conditional operators. So it start evaluating from right to left. [More]