Partial Classes Concept in Asp.Net 2.0
One of the language enhancements in .NET 2.0 - available to both VB2005 and
C# 2.0 programmersis support for partial classes. In a nutshell, partial classes
mean that your class definition can be split into multiple physical files. Logically,
partial classes do not make any difference to the compiler. During compile
time, it simply groups all the various partial classes and treats them as a
single entity.
Benefits of Partial Classes
One of the greatest benefits of partial classes is that they allow a clean separation
of business logic and the user interface (in particular, the code that is
generated by the Visual Studio Designer). Using partial classes, the UI code
can be hidden from the developer, who usually has no need to access it anyway.
Partial classes also make debugging easier, as the code is partitioned
into separate files. This feature also helps members of large development
teams work on their pieces of a project in separate physical files.