Difference between ASP and ASP.NET

ASP: ASP stands for Active Server Pages. It is a development framework used for building web pages. ASP was introduced in 1998 by Microsoft as its first server side scripting language. The file extension of ASP pages are .asp and are normally written in VBScript. It is an old but still powerful tool for making dynamic web pages. ASP is a technology (much like PHP) for executing scripts on a web server.

Example:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
  
<body>
    <%response.write("Welcome to GeeksforGeeks!")%>
</body>
  
</html>                    

chevron_right


Output:



Welcome to GeeksforGeeks!

ASP.NET: ASP.NET was released in 2002 by Microsoft as a successor to ASP. It is also a server-side web framework, open source, which is designed for the generation of dynamic web pages. The file extension of ASP.NET pages are .aspx and are normally written in C# (C sharp). The latest version of ASP.NET is ASP.NET 4.6.

Example:

filter_none

edit
close

play_arrow

link
brightness_4
code

@{ 
    var rank = 50;
}
<html>
<body>
@if (rank < 60)
{
    <p>Welcome to GeeksforGeeks!</p>
}
</body>
</html>

chevron_right


Output:

Welcome to GeeksforGeeks!

Difference between ASP and ASP.NET:

ASP ASP.NET
ASP is the interpreted languages. ASP.NET is the compiled language.
ASP uses ADO (ActiveX Data Objects) technology to connect and work with databases. ASP.NET uses ADO.NET to connect and work with database.
ASP is partially object oriented. ASP.NET is fully object oriented.
ASP Pages have the file extension .asp. ASP.NET Pages have the file extension .aspx.
ASP doesn’t have the concept of inheritance. ASP.NET inherit the class written in code behind.
ASP pages use scripting language. ASP.NET use full fledged programming language.
Error handling is very poor in ASP. Error handling is very good in ASP.NET.
ASP has maximum four in-built classes i.e. Request, Response, Session and Application. ASP.NET has more than 2000 in-built classes.


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.