What are the difference between ASP and ASP.Net?
Answer Posted / chauhan rakesh botad
ASP:
1) ASP is Interpreted language based on scripting languages
like Jscript or VBScript.
2) ASP has Mixed HTML and coding logic.
3) Limited development and debugging tools available.
4) Limited OOPS support.
5) Limited session and application state management.
6) Poor Error handling system.
7) No in-built support for XML.
8) No fully distributed data source support.
ASP.Net:
1) ASP.Net is supported by compiler and has compiled
language support.
2) Separate code and design logic possible.
3) Variety of compilers and tools available including the
Visual studio.Net.
4) Completely Object Oriented.
5) Complete session and application state management.
6) Full proof error handling possible.
7) Full XML Support for easy data exchange.
8) Fully distributed data source support
ASP stands for Active Server Pages. ASP.NET is the next
generation of ASP. After the introduction of ASP.NET, old
ASP is called 'Classic ASP'.
Classic ASP uses vb script for server side coding. Vb Script
is not supported any more in ASP.NET. Instead, ASP.NET
supports more languages including C#, VB.NET, J# etc. VB.NET
is very similar to vb script, so it should be easy for old
Visual Basic or ASP programmers to switch to VB.NET and ASP.NET
VB Script is a simple scripting language, where as VB.NET or
C# are modern, very powerfull, object oriented programming
languages. Just for that reason, you will be able to write
much more robust and reliable programs in ASP.NET compared
to ASP.
In classic ASP, there was no server controls. You have to
write all html tags manually. ASP.NET offers a very rich set
of controls called Server Controls and Html Controls. It is
very easy to drag and drop any controls to a web form. The
VS.NET will automatically write the required HTML tags
automatically for you.
ASP is interpreted, ASP.NET is compiled
Since ASP uses vb script, there is no compilation. All ASP
pages are interpreted when th page is executed.
ASP.NET uses modern .NET languages like C#, VB.NET etc. They
can be compiled to efficient Microsoft Intermediate Language
(MSIL). When you compile an ASP.NET application, the server
side code is compiled to assemblies. These assemblies are
loaded at run time which makes the ASP.NET pages perform
better than classic ASP.
ADO and ADO.NET
Classic ASP uses a technology called ADO to connect and work
with databases. ASP.NET uses the ADO.NET technology (which
is the next generation of ADO).
Event driven programming
If you have written Visual Basic programs before, you would
love the event driven programming approach. It is so easy to
drag and drop a button control and double click on the
button to write the event handler for the button click
event. When you click on the button at turn time, it will
execute whatever code you have written in the event handler.
This type of event driven programming was not available with
classic ASP. You cannot drag and drop a button and write a
'on click' event handler with ASP.
With ASP.NET, this is changed. It works pretty much like
your Visual Basic program. You can write event handlers for
several events like button click event, text changed event etc.
However, there is big difference between the way event
handling works in regular Visual basic and ASP.NET. In
ASP.NET, a page is loaded in the client browser. And the
server may be in another location (may be in another
country). When you click on the button in an ASP.NET page,
the 'click event' handler has to be executed on the server,
not on the client.
How does the server know when you click on a button your
browser? This is a tricky thing in ASP.NET. When you write
an event handler for a button lick or something like that in
ASP.NET, lot of things happens behind the screens. ASP.NET
will produce lot of client side javascript code to handle
this and embed this javascript in the html page it sends to
the browser. When you click on the button in the browser,
the client side javascript will get executed. This
javascript will generate some information required for the
server and and submit the page request to the server. There
is enough information embedded in this request so that the
server will understand that user has clicked a specific
button in the browser and it has to execute some 'specific
event handler' code in the server side. So, when the user
clicks on a button, the page is submitted automatically to
the server with some special information. In the server
side, it will process the event handler for the button click
event and send back the output page to the browser again.
Similary, you can write other event handlers like text
changed event for Textboxes etc.
As a user of the web page, you will not even know what
happened in the background. All you can see is, when you
clicked the button, it executed the button click event
handler in the server side and you got the result. However,
you may notice a delay because the page has to be submitted
to the server to execute the event handler.
NOTE: The event handling we just discussed is server side
event handling. In addition to that, you can handle any
events in the client side using Javascript. This is
supported even in classic ASP. The client side event
handling is used for simpel client side validation,
displaying messages to the user etc. You cannot do any
server side programming in client side java script (like
accessing the database etc).
What You Need
If you have a Beta version of ASP.NET installed, we
recommend that you completely uninstall it!
Or even better: start with a fresh Windows 2000 or XP
installation!
Windows 2000 or XP
If you are serious about developing ASP.NET applications you
should install Windows 2000 Professional or Windows XP
Professional.
In both cases, install the Internet Information Services
(IIS) from the Add/Remove Windows components dialog.
Service Packs and Updates
Before ASP.NET can be installed on your computer, all
relevant service packs and security updates must be installed.
The easiest way to do this is to activate your Windows
Internet Update. When you access the Windows Update page,
you will be instructed to install the latest service packs
and all critical security updates. For Windows 2000, make
sure you install Service Pack 2. You should also install the
latest version of Internet Explorer.
Tip: Read the note about connection speed and download time
at the bottom of this page.
Install .NET
From your Windows Update you can now select the Microsoft
.NET Framework.
After download, the .NET framework will install itself on
your computer - there are no options to select for installation.
You are now ready to develop your first ASP.NET application!
The .NET Software Development Kit
If you have the necessary bandwidth, you might consider
downloading the full Microsoft .NET Software Development Kit
(SDK).
We fully recommend getting the SDK for learning more about
.NET, and for the documentation, samples, and tools included.
Connection Speed and Download Time
If you have a slow Internet connection, you might have
problems downloading large files like the Windows 2000
Service Pack 2 and the Microsoft .NET Framework.
If download speed is a problem, our best suggestion is to
get the latest files from someone else, from a colleague,
from a friend, or from one of the CDs that comes with many
popular computer magazines
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can you dynamically assign a Master Page?
Is viewstate secure?
What is application and session in asp.net?
What are the three parts of an http response?
What is the behavior of a Web browser when it receives an invalid element?
Let's say I have an existing application written using vb6 and this application utilizes windows 2000 com+ transaction services. How would you approach migrating this application to.net?
Which object wraps the state or data of a user?
What is difference between asp.net and asp?
What New Features comes with ASP.NET Web API 2.0?
How long should a session id be?
What is css in asp.net?
To bind columns manually which tags do you need to add within the asp:datagrid ?
Explain asp.net mvc request life cycle? : asp.net mvc
What is GAC in ASP.NET 2.0
What is _dopostback in asp net?