You are on page 1of 2

Difference between ASP and ASP.

NET
ASP.NET:
ASP.Net web forms have a code behind file which contains all event handling code.
ASP.Net web forms inherit the class written in code behind.
ASP.Net web forms use full fledged programming language
ASP.Net web applications are configurable (web.config)
ASP.Net webforms can use custom controls through the @ register directive
ASP.Net web forms have ADO.Net which supports XML integration and integration of data from
two or more data sources

ASP:
ASP does not have such facility to separate programming logic from design.
ASP does not have the concept of inheritance.
ASP pages use scripting language.
ASP applications are not.
It is not available with ASP.
while ASP has ADO which is a simple COM object with limited facilities.
1. ASP is interpreted, ASP.NET is compiled.
2. Classic ASP uses a technology called ADO to connect and work with databases. ASP.NET
uses the ADO.NET technology
3. ASP has Mixed HTML and coding logic where in asp.net html and coding part are separated by
code behind files.
4. ASP.NET purely object oriented whereas ASP is partially object oriented.
5. For ASP No in-built support for XML whereas in ASP.NET full XML Support for easy data
exchange.
The most important difference between ASP and ASP.Net is that ASP uses interpreted VBScript
or JScript, and ASP.net uses any .Net language (including VB.Net, C#, J#, etc.) compiled.
ASP 3.0 left all its code in the front of the application. There was no way for a programmer to
"hide" the sensitive code which he or she may not want anybody to see. The fact the code ran at
run-time also slowed performance. ASP.NET allows the programmer to create dynamic link
libraries containing the sensitive code. This may be a disadvantage from an open-source
perspective but compiling code into dll's greatly improves performance.
ASP.NET is firmly rooted in XML. Customarily, the dll's ASP.NET creates start out as
namespaces. All of the classes in the namespaces are then compiled into a single dll binary.
ASP is mostly written using VB Script and HTML intermixed. Presentation and business logic is
intermixed while ASP.NET can be written in several .NET compliant languages like C#, VB.NET
and business logic can be clearly separated from Presentation logic.
ASP had maximum of 4 built in classes like Request, Response, Session and Application
whereas ASP.NET using .NET framework classes which has more than 2000 in built classes.
ASP does not have any server based components whereas ASP.NET offers several server
based components like Button, TextBox etc. and event driven processing can be done at server.

) based on the device.NET offers support for Web Services and rich data structures like DataSet which allows disconnected data processing. ASP.NET supports Page level transactions.NET offers web development for mobile devices which alters the content type (wml or chtml etc. ASP. ASP.ASP did not support Page level transactions whereas ASP. .NET uses languages which are fully object oriented languages like C# and also supports cross language support.