Sunday 4 March 2012

Introduction Of Asp Dot Net

  
Active Server Pages .NET (ASP.NET) is the infrastructure built inside the .NET  Frame work for running Web applications. As a programmer, you interact with it using appropriate types in the class libraries to write programs and design web forms . When a client request a page, the ASP.NET service runs (inside CLR), executes your code and creates a final HTML page to send to the client.         
The ASP.NET infrastructure consists of two main parts:
  1. A set of classes and interfaces that enables communication between browser and Web     server. These classes are organized in the System. Web namespace of the FCL.
            2. A runtime host that handles the Web request for ASP.NET resources. The ASP.NET runtime host (also known as the ASP.NET worker process) loads the CLR into a process, creates the application domains within the process, and then loads and executes the requested code within the application domains.
         ASP.NET is a powerful and flexible server-side technology for creating dynamic Web pages.
      Salient features :
Ø  ASP stands for Active Server Pages and it is a server side technology.
Ø  ASP.NET provides services to allow the creation, deployment, and execution of Web Applications and Web Services.
Ø  Web Applications are built using Web Forms. ASP.NET comes with built-in Web Forms controls, which are responsible for generating the user interface.
Ø  ASP.NET is the next generation ASP but it's not an upgraded version of ASP.
Ø  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
Ø  Like ASP, ASP.NET is a server-side technology
     ASP Object Model:-
Ø ASP itself is not Object-Oriented. ASP can use objects but cannot define new objects
Ø Composed of
n     5 objects
n     ASP Objects:-
Ø  Request
Ø  Response
Ø  Server
Ø  Application
Ø  Session
     ASP.NET 3.5 Extensions:-
Ø ASP.NET MVC Framework
n  Model View Controller framework for ASP.NET ( now in Beta )
Ø ASP.NET Dynamic Data
n  Dynamic data controls for displaying/editing table data in ASP.NET
Ø ASP.NET AJAX
n  Browser history support
Ø ADO.NET Data Services
n  Create REST addressable services endpoints for your data and consume with AJAX and Silver light
Ø Silver light Controls for ASP.NET
Ø Integrate Silver light into ASP.NET applications
         Advantages of ASP.NET:-
1.  Use services provided by the .NET Framework
                  The .NET Framework provides class libraries that can be used by your application. Some of the key classes help you with input/output, access to operating system services, data access, or even debugging. We will go into more detail on some of them in this module.
2.       Graphical Development Environment
                  Visual Studio .NET provides a very rich development environment for Web developers. You can drag and drop controls and set properties the way you do in Visual Basic 6. And you have full IntelliSense support, not only for your code, but also for HTML and XML.
3.  State management
To refer to the problems mentioned before, ASP.NET provides solutions for session and application state management. State information can, for example, be kept in memory or stored in a database. It can be shared across Web farms, and state information can be recovered, even if the server fails or the connection breaks down.
4.  Update files while the server is running
Components of your application can be updated while the server is online and clients are connected. The Framework will use the new files as soon as they are copied to the application. Removed or old files that are still in use are kept in memory until the clients have finished.
5.  XML-Based Configuration Files
                        Configuration settings in ASP.NET are stored in XML files that you can easily read and edit. You can also easily copy these to another server, along with the other files that comprise your application.
6.  Enhanced Application Development Model
ASP.NET supports the rapid     application development (RAD) and object oriented programming (OOP) techniques that were traditionally available only to desktop applications. Two significant improvements in ASP.NET bring the development of Web applications closer to desktop applications:
1.   ASP.NET allows you to work with HTML elements as objects .Using properties,          methods, and events associated with these objects greatly simplifies the programming model.
2.   What distinguishes a Web application most from a desktop application is that Web is stateless because of the inherent nature of HTTP protocol. To simplify the programming model , .NET automatically maintains the state of a page and the controls on that page during the page-processing life cycle.
7.  Rich Class Library Support
                        In your ASP.NET programs, you have access to all the classes of FCL. You can use these classes to accomplish complex tasks. For example, ADO.NET classes that belong to the System . Data namespace allow you to access data from different sources, whereas the classes in the System . Web . Services namespace allow you to create XML based Web services.
8.     Performance
                        All ASP.NET pages are compiled before they are executed. Overall  performance of compiled code is much better than the interpreted code. In addition to    this, ASP.NET supports caching that allows ASP.NET to reuse the compiled version if no changes were made to the source file since the last compilation. Caching further increases the performance of ASP.NET by saving the time involved in the repeated compilation of a page.
9.     Scalability
                        ASP.NET supports running the Web applications in a Web garden and Web farm scenario. In a Web garden, processing work is distributed among several processors of a multiprocessor computer. In a Web farm scenario, processing work is distributed among several computers making up the Web farm. Web gardens and Web farms allow you to scale your Web application by adding more processing power as the number of hits on the Web site increases.
10.   Security
                        As part of the .NET Framework, ASP.NET has access to all the built-in security features of the .NET Framework, such as code access security and role-based user access security. ASP.NET also offers various authentication modes for Web applications. In addition to Windows-based authentication, ASP.NET has two new modes of authentication—forms-based and Passport authentication.
11.  Manageability
                        ASP.NET configuration files are stored as XML files. Applying new  settings to a Web application is as simple as just copying the configuration files to, the server . Most of the configuration changes do not even require a server restart.
         Microsoft Intermediate Language(MSIL):-
                        When the code is compiled, the compiler translates your code into Microsoft intermediate language (MSIL). The common language runtime includes a JIT compiler for converting this MSIL then to native code.
                        MSIL contains metadata that is the key to cross language interoperability. Since this metadata is standardized across all .NET languages, a program written in one language can understand the metadata and execute code, written in a different language. MSIL includes instructions for loading, storing, initializing, and calling methods on objects, as well as instructions for arithmetic and logical operations, control flow, direct memory access, exception handling, and other operations.
—  .NET languages are not compiled to machine code.  They are compiled to an Intermediate Language (IL).
—  CLR accepts the IL code and recompiles it to machine code.  The recompilation is just-in-time (JIT) meaning it is done as soon as a function or subroutine is called.
—  The JIT code stays in memory for subsequent calls.  In cases where there is not enough memory it is discarded thus making JIT process interpretive.
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