Wednesday, 8 February 2012

INTRODUCTION START OF ASP.NET


Microsoft's previous server side scripting technology asp (active server pages) is now often called classic asp.
Active Server Pages .NET (ASP.NET) is the infrastructure built inside the .NET  Framework for running Web applications. As a programmer, you interact with it using appropriate types in the class libraries to write programs and design webforms.
 When a client request a page,t the ASP.NET service runs (inside CLR), executes your code and creates a final HTML page to send to the client. 
Asp 3.0 was the last version of classic asp.
Asp.net is the next generation asp, but it's not an upgraded version of asp.
ASP.NET Is An Entirely New Technology For Server-Side Scripting. It Was Written From The Ground Up And Is Not Backward Compatible With Classic ASP.
You Can Read More About The Differences Between ASP And ASP.NET In The Next Chapter Of This Tutorial.
ASP.NET Is The Major Part Of The Microsoft's .NET Framework.


WHAT IS ASP.NET?

Asp.net is a server side scripting technology that enables scripts (embedded in web pages) to be executed by an internet server.
  • Asp.net is a microsoft technology
  • Asp stands for active server pages
  • Asp.net is a program that runs inside iis
  • Iis (internet information services) is microsoft's internet server
  • Iis comes as a free component with windows servers
  • Iis is also a part of windows 2000 and xp professional

WHAT IS AN ASP.NET FILE?

  • An asp.net file is just the same as an html file
  • An asp.net file can contain html, xml, and scripts
  • Scripts in an asp.net file are executed on the server
  • An asp.net file has the file extension ".aspx"

HOW DOES ASP.NET WORK?

  • When a browser requests an HTML file, the server returns the file
  • When a browser requests an ASP.NET file, IIS passes the request to the ASP.NET engine on the server
  • The ASP.NET engine reads the file, line by line, and executes the scripts in the file
  • Finally, the ASP.NET file is returned to the browser as plain HTML

THE MICROSOFT .NET FRAMEWORK

The .NET Framework is the infrastructure for the Microsoft .NET platform.
The .NET Framework is an environment for building, deploying, and running Web applications and Web Services.
Microsoft's first server technology ASP (Active Server Pages), was a powerful and flexible "programming language". But it was too code oriented. It was not an application framework and not an enterprise development tool.
The Microsoft .NET Framework was developed to solve this problem.
.NET Frameworks keywords:
  • Easier and quicker programming
  • Reduced amount of code
  • Declarative programming model
  • Richer server control hierarchy with events
  • Larger class library
  • Better support for development tools
The .NET Framework consists of 3 main parts:
Programming languages:
  • C# (Pronounced C sharp)
  • Visual Basic (VB .NET)
  • J# (Pronounced J sharp)
Server technologies and client technologies:
  • ASP .NET (Active Server Pages)
  • Windows Forms (Windows desktop solutions)
  • Compact Framework (PDA / Mobile solutions)
Development environments:
  • Visual Studio .NET (VS .NET)
  • Visual Web Developer
ASP.NET has better language support, a large set of new controls, XML-based components, and better user authentication.
ASP.NET provides increased performance by running compiled code.
ASP.NET code is not fully backward compatible with ASP.

NEW IN ASP.NET

  • Better language support
  • Programmable controls
  • Event-driven programming
  • XML-based components
  • User authentication, with accounts and roles
  • Higher scalability
  • Increased performance - Compiled code
  • Easier configuration and deployment
  • Not fully ASP compatible

LANGUAGE SUPPORT

ASP.NET uses ADO.NET.
ASP.NET supports full Visual Basic, not vbscript.
ASP.NET supports C# (C sharp) and C++.
ASP.NET supports jscript.

ASP.NET CONTROLS

ASP.NET contains a large set of HTML controls. 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 programmable list-boxes and validation controls.
A new data grid control supports sorting, data paging, and everything you can expect from a dataset control.

EVENT AWARE CONTROLS

All ASP.NET objects on a Web page can expose events that can be processed by ASP.NET code.
Load, Click and Change events handled by code makes coding much simpler and much better organized.

ASP.NET COMPONENTS

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

USER AUTHENTICATION

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

USER ACCOUNTS AND ROLES

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

HIGH SCALABILITY

Much has been done with ASP.NET to provide greater scalability.
Server-to-server communication has been greatly enhanced, making it possible to scale an application over several servers. One example of this is the ability to run XML parsers, XSL transformations 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. The result of this is greatly increased performance.

EASY CONFIGURATION

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

EASY DEPLOYMENT

No more server-restart to deploy or replace 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.
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.
Compilers that are compliant with the CLR generate code that is targeted for the runtime, as opposed to specific CPU. This code, known variously as Microsoft Intermediate Language(MSIL), is an assembler-type language  that is packaged in EXE or DLL file. These are not standard executable files and require that the runtime’s Just-in-Time compiler convert IL in them to machine specific code when an application actually runs. Because the common language runtime is responsible for managing this IL, the code is known as Managed code.

No comments:

Post a Comment