Tuesday, June 16, 2009

Development Web Application, Web Services

Introduction of Namespace

NameSpace is logical group of classies which help to develop an application. Namespace allows you to use in-built .NET Classes. "System" at top(begining) of the code behind page.

In C#, We have to write "using" keyword begining of namespace e.g "using System".

In VB, We have to write "Imports" keyword begining of namespace e.g "Imports System".

System: Root for All other namespace in Dot Net. It is basic namespace for all other namespace.

System.Collections: This namespace for classis which represent different types like SortedList, ArrayList,Queue, and Stack. We also can find abstract classes, like CollectionBase.

System.ComponentModel: This namespace for classis which consist of create and containement, like as attributes, type converters, & license providers.

System.Data: This namespace contains classes required for database access and manipulations, as well as additional namespaces used for data access.

System.Data.Common: This namespace contains a set of classes that are shared by the .NET managed data providers.

System.Data.OleDb: This namespace contains classes that make up the managed data provider for OLE DB data access.

System.Data.SQLClient: This namespace contains classes that are optimized for interacting with Microsoft SQL Server.

System.Drawing: This namespace exposes GDI+ functionality and provides classes that facilitate graphics rendering.

System.IO: In this namespace, you will find types for handling file system I/O.

System.Math : This namespace is home to common mathematics functions such as extracting roots and trigonometry.

System.Reflection: This namespace provides support for obtaining information and dynamic creation of types at runtime.

System.Security: This namespace is home to types dealing with permissions, cryptography, and code access security.

System.Threading: This namespace contains classes that facilitate the implementation of multithreaded applications.

System.Windows.Forms :This namespace contains types involved in creating standard Windows applications. Classes that represent forms and controls reside here as well.

e.g In C#
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

e.g In VB
Imports System;
Imports System.Data;
Imports System.Configuration;
Imports System.Web;
Imports System.Web.Security;
Imports System.Web.UI;
Imports System.Web.UI.WebControls;
Imports System.Web.UI.WebControls.WebParts;
Imports System.Web.UI.HtmlControls;