Introduction to Web Forms
Author : Thomas Kurian Ambattu 
 
This is a new technology available with ASP.NET. Web Forms are also Web Pages, but the difference between ordinary Web Pages and Web Forms is that we can write programs in Web Forms. We can use Web Forms as User Interfaces like normal Web Pages.
The main attraction or advantage of Web Form is that you can use any language provide with Microsoft Visual Studio. NET, ie you can use either VB.NET, C#. NET or Jscript. NET. So if a person is familiar with VB he can write code in VB.NET or if another person is interested in C#. Net he can write code in C#. NET. There is no need that he should learn a new programming language to do programming in ASP.NET.
Another important thing is programming in Web Form is comparatively easy since you can drag user controls to the Web Forms. You don't have to write extra code for it. Visual Studio.NET provides a set of controls, which you can use in Web Forms.

Structure of a Web Form

Web Forms are mainly divided into two parts. First is the UI (User Interface) component and the Second part is the logic part.
The UI part is called as the Web Forms page. The Web Forms page has the static HTML and the server controls we use. This File will have an extension ".aspx".
Next is the logic part, this consist of the code or program which we write to interact with the Web Forms page. This exists in a separate file and is called as a " code-behind " file. As I told earlier you can use either VB.NET, C#. NET or Jscript.This file will have an extension ".aspx.vb" or ".aspx.cs". The code-behind files in a particular project will be compiled into a dynamic link library (.dll) file.
Below is a simple representation of Web Form.

 
Advantages of Web Form

Since ASP.NET is built on .NET framework. The entire .NET Framework is available to all ASP.NET applications.
Easy to work UI with facility to drag and drop server controls and use it.
No need to write separate code section for server processing.
Support event driven programming model.
You can use any programming language which is a member of Visual Studio.NET.This helps programmers to write codes according to their interest.
Database communication is made easier with the help of ADO.NET.

 
 
 
   
 Copyright © 2003 NETKidoos.com All rights reserved Terms Of Use
Best viewed in 1024 X 768, IE 5.0 and above