Monday, January 29, 2007

Differences between ASP and ASP.NET

  • ASP is a Script Language (like VBScript), where as ASP.NET is a the web formulation of a Compiled Language (i.e. Visual Basic, C#, J#, C++.Net)


  • Asp control events for the text buttion can be handled at client javascript only where as in asp.net,since we have server controls events can handle at server side


  • ASP.NET has better language support than ASP and also it has a large set of new controls and XML based components, and better user authentication.


  • By running compiled code,ASP .NET provides increased performance.


  • With ASP,ASP .NET code is not fully backward compatible.

  • New in ASP .NET
    • It is not fully ASP compatible
    • It has better language support
    • It has its ownProgrammable controls
    • It has event-driven programming
    • It has XML-based components
    • It has user authentication, with accounts and roles
    • It has higher scalability
    • It has capability to increased performance - Compiled code
    • It has easier configuration and deployment
    Language Support ASP .NET Controls

    ASP .NET supports full of Visual Basic, not VBScript.

    ASP .NET supports C# (C sharp) and C++.

    ASP .NET uses new ADO .NET.

    ASP .NET supports JScript as before.

    ASP .NET contains a large set of HTML controls and almost all HTML elements on a page can be defined as ASP .NET control objects that can be controlled by scripts.

    ASP .NET also contains a new set of object oriented input controls, like validation controls and programmable list boxes.

    A new data grid control supports sorting, data paging, and everything that you expect from a dataset control.

    Event Aware Controls

    All ASP .NET objects on a Web page that can expose events that can be processed by ASP .NET code.

    Load, Click and Change events handled by code makes coding much better and much simpler organized.

    ASP .NET Components

    ASP .NET components are heavily based on XML and like the new AD Rotator, that uses XML to store advertisement information and configuration.

    User Authentication

    ASP .NET supports forms-based user authentication, including automatic redirecting and cookie management of unauthorized logins.

    User Accounts and Roles

    ASP .NET allows for user accounts and roles, to give each user (with a given role) access to different executables and server code.

    High Scalability

    ASP .NET also provides greater scalability.

    To scale an application over several servers,server to server communication has been greatly enhanced.One example of this is the ability to run XSL transformations ,XML parsers,and even resource hungry session objects on other servers.

    Compiled Code

    The first request for an ASP .NET page on the server will compile the ASP .NET code and keep a cached copy in memory and the result of this is greatly increased performance.

    Easy Configuration

    Configuration of ASP .NET is done with plain text files and configuration files can be uploaded or changed while the application is running. No need to restart the server and no more metabase or registry puzzle.

    Easy Deployment

    No more server restart to replace or deploy compiled code. ASP .NET simply redirects all new requests to the new code.

    Compatibility

    ASP .NET is not fully compatible with earlier versions of ASP, so most of the old ASP code will need some changes to run under ASP .NET and to overcome this problem, ASP .NET uses a new file extension ".aspx". This will make ASP .NET applications able to run side by side with standard ASP applications on the same server.