alert('Oh shit !!!! Javascript is disabled!!!! ');


Blog Archive

Various types of application that we can develop in .NET

Various types of application that we can develop in .NET

When you hear the name .NET, it gives a feeling that it is something to do only with internet or networked applications. Even though it is true that .NET provides solid foundation for developing such applications it is possible to create many other types of applications.

Following list will give you an idea about various types of application that we can develop on .NET.

  • ASP.NET Web applications: These include dynamic and data driven browser based applications.

  • Windows Form based applications: These refer to traditional rich client applications.

  • Console applications: These refer to traditional DOS kind of applications like batch scripts.

  • Component Libraries: This refers to components that typically encapsulate some business logic.

  • Windows Custom Controls: As with traditional ActiveX controls, you can develop your own windows controls.

  • Web Custom Controls: The concept of custom controls can be extended to web applications allowing code reuse and modularization.

  • Web services: They are “web callable” functionality available via industry standards like HTTP, XML and SOAP.

What is  Partial Class

The purpose of a partial class is to allow you to textually break up a class declaration into multiple parts, usually parts found in separate files. The motivation for this feature was machine-generated code that is to be extended by the user by adding to it directly. When you draw a form in the forms designer, the designer generates a class for you representing that form. You can then further customize that class by adding more code to it.

By the use of partial Class  you can split the definition into multiple classes by using the partial keyword. When the application is complied, the C# complier will group all the partial classes together and treat them as a single class. There are a couple of good reasons to use partial classes. Programmers can work on different parts of a class without needing to share the same physical file. Also you can separate your application business logic from the designer-generated code.

Example of Partial Class



 Public partial class Employee

{

      public void display()

      {}

}



Public partial class Employee

{

       public void show()

       {}

}