Create a clone of panel with fieldset on hyperlink click

There is no readymade clone or copy method so if you have a panel which contains fieldsets with controls and want to add the same panel to the page on hyperlink button click, you have to do it yourself through coding. You can create new Panel object and initialize its properties... [More]

C# Object creation exercise test

What would be the output of-        classA { }     classB { }     classC { }     classProgram     {         staticvoid Main(string[] args)      &n... [More]

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]