siva G
tell me the difference between asp and asp.net
By siva G in ASP.NET on Feb 08 2011
  • Umar Ali
    Sep, 2012 1

    Please refer to the following URL to know the differences between ASP and ASP.NET,http://onlydifferencefaqs.blogspot.in/2012/08/aspnet-difference-faqs-3.html

    • 0
  • kanchan setia
    Feb, 2011 14

    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).

    • 0
  • sarika jain
    Feb, 2011 11

    There are the several differences between ASP and ASP.NET

    First of all ASP stands for Active Server Pages.ASP.NET is the next generation of ASP.

    Now coming to the differences which is given below:

    1.ASP uses vbScript for server side coding which is no more supported in ASP.NET bcoz ASP.NET has the support  of more programming languages like C#,VB.NET,J#.As we know that vbscript is a simple programming language whereas C#,VB.NET are highly robust, reliable ,powerful and the major one is it is object oriented programming language.

    2.In ASP there are no server controls,we have to write HTML tags manually which is truly time consuming whereas in ASP.NET offers a rich set of Server Controls and HTML controls we can easily drag and drop to any web form and Visual Studio.NET will automatically write the HTML tags which is interesting and saves the time.

    3.ASP uses ADO to connect and work with the database whereas ASP.NET uses ADO.NET (which is the next generation of ADO).

    4.ASP is interpreted whereas ASP.NET is compiled .It means ASP pages are interpreted when executed.whereas ASP.NET pages are compiled to efficient MSIL(Microsoft Intermediate Language).When you compile an ASP.NET application ,server side code is compiled to assemblies and these assemblies are loaded at runtime which makes ASP.NET preform far better than ASP.

    5.In ASPthere was no built in support for XML whereas in ASP.NET there is full XML support for data exchange.

    6.If you have made the ASP.NET applications you would love working with it as compare to ASP bcoz ASP.NET is event driven programming as for example drag a button control and double click on it  to write the event handler for the button and when you click on the button at run time it will execute the code  written in the event handler wheras ASP is not event driven programming.

    7.ASP has mixed HTML and coding logic whereas ASP.NET has seperate code and design logic.

    • 0
  • Manish Dwivedi
    Feb, 2011 10

    There are a number of striking differences between ASP.NET and ASP. For some of these differences the benefits will be immediately obvious. For others. We ll have to get used to new ways of thinking about dynamic web Pages. Among the changes are:

    ASP.NET pages are complied not interpreted. A binary executable is compiled upon the first request to the page. This image is stored in an in-memory cache on the web server and subsequent request to this page use this executable to service the request.

    The Framework provides a very clean separation of code from content. With ASP because the HTML is generated as the page is interpreted your page logic must be embedded into the page at the location where you want the HTML generated by this logic to be output. With ASP.NET no HTML is generated until all of the code in your page has finished executing. The entire task of HTML generation is done in the page s rendering step which uses the properties for all of us who consider script writing and HTML generation a poor substitute to sitting down and writing real code.

    ASP.NET Framework maintains state for you. Do you ever have to post of the server to apply validation logic to a data entry HTML form? When there s a problem you must write code to repopulate every input on your HTML form. You must also execute script inline to add validation messages next to the fields that have errors. The resulting code is often a tangled mess. If the business logic changes that s a tough page to maintain. With the ASP.NET Framework this state maintenance is done for you. The fields maintain their value without a single line of code written by you. This applies not only to simple text inputs but also to SELECT lists check boxes radio buttons and other input types on your form. Built-in validation controls allow you to enforce your business logic by adding a single tag to your page and simply checking the Page. Is Valid property when it posts to the server.

    ASP.NET runs events on the server. In ASP because of the amount of script that must be mixed with the HTML it s common to split a single functional area across several pages. One page may collect data from a user whereas another accepts the HTTP post and updates your relational data telling your user the result of the operation. Although its possible to put this functionality into a single ASP page you do so at the risk of needing to maintain a garbled mess of code over the long haul. Breaking these functions into separate pages causes the number of files in your web site to balloon. With ASP.NET you can set up server side event traps

    ASP.NET provides a consistent event model. With ASP script is executed on the page in a top-down manner. Although it s possible to put your script within functions that you call from the page body there s no event model that fires at specific points in the life cycle of your page. With ASP.NET this event model has been added. Most importantly there s an event fired whenever your page. With ASP.NET this event your page begins to load. This is very much like the from_Load event in VB. The page load event can be trapped in a script tag or from your code behind the page. This gives you a consistent model for setting up your output.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS