Friday, September 23, 2011

ASP.NET

What is ASP.net?


ASP.NET is the next generation web application framework developed and marketed by Microsoft based on .NET Framework. But not to be confused that it's not an upgraded version of ASP. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successful successor to Microsoft's Active Server Pages (ASP) technology.

ASP.NET allow programmers to build dynamic web sites, web applications ,web services and so many strong features. One of the key features of ASP.NET is that it uses an event-based programming model. In ASP.NET Page and control events occur in a certain order which we can call the page life cycle . These features really make the developers life more easy and flexible.

It is built on the Common Language Runtime (CLR), allowing programmers to write ASP.NET code using any supported .NET languages. It is a server side scripting technology that enables scripts (embedded in web pages) to be executed by an web server(Internet Information Services).In ASP.NET, you are not limited to scripting languages. You can now use the following .NET languages:

C#
J#
VB.NET

Using Visual Studio, the development tool from Microsoft, web developers can develop very compelling applications using ASP.NET, with the ease of drag-and-drop server controls. Currently in its next major release, ASP.NET 4.0 and Visual Studio 2010 is slated to be released in March 2010.

How it works?



When a web browser requests a page from a web server, the web server (IIS) will first check if the request is for an HTML page. If it is, the request is fulfilled by fetching the files from the OS and then returning it to the client (web browser).

If the client is requesting an ASP.NET page, IIS will pass the request to the ASP.NET runtime, which will then process the application by reads the file, line by line, and executes the scripts in the file. After process complete it returns the output to the client as an format of pure html.