• Like
Asp Architecture
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Asp Architecture

  • 6,377 views
Published

 

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • b,,b,nbbvnbv
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
6,377
On SlideShare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
172
Comments
1
Likes
2

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. ASP.NET Architecture Om Vikram Thapa
  • 2. Contents
    • Active Server Pages
      • ASP and HTML
      • ASP and ASP.NET
    • ASP and .NET
      • What is .NET?
      • Managed and Unmanaged Execution
    • .NET Framework
      • Common Type System
      • Common Language Specification.
      • Common Language Runtime.
      • Compilation and Execution.
    • ASP.NET Architecture
      • ASP.NET Application Types.
      • ASP and ASP.NET
  • 3. Active Server Pages
    • Web pages containing server-side scripts in addition to Text and HTML Tags.
    • It runs inside the IIS.
    • Server-side scripts are special commands in Web pages that are processed before the pages are sent from Web Server to the Web Browser of client.
    • When Browser requests ASP File, IIS passes request to ASP Engine .
    • ASP Engine reads ASP File line by line, executes scripts and ASP File is returned to Browser as a plain HTML File.
  • 4. HTML and ASP
    • Server-side Scripts cannot be written in HTML.
    • Scripts denoted by delimiters : < >
    • Cannot access any Database.
    • Scripts can be viewed from the Browser.
    • Pages are Static.
    • Pages denoted by .html or .htm
    • Server-side Scripts can be written using ASP.
    • Scripts denoted by delimiters: <% %>
    • Can access any Data or Database.
    • Scripts cannot be viewed from the Browser.
    • Pages are Dynamic.
    • Pages denoted by .asp or .aspx for ASP.NET
    HTML ASP
  • 5. .NET and ASP
    • What is .NET?
      • Platform Neutral Framework from Microsoft
      • Is a layer between the operating system and the programming language.
      • It supports 24 programming languages:
        • Visual Basic, C# , J# , C++, Perl etc.
      • .NET provides a common set of class libraries, which can be accessed from any .NET based programming language.
    • Managed and Unmanaged Execution Environment
      • Unmanaged Code : Converted directly into Native Code.
      • Managed Code : Converted to an Intermediate Language which can be executed from any environment having the .NET Framework.
  • 6. .NET Framework Operating System Common Language Runtime Base Class Library ADO.NET and XML ASP.NET Windows Forms Common Language Specification VB C++ C# JScript … Visual Studio.NET
  • 7. Inside the .NET Framework
    • Common Type System [CTS]:
    • Provides every language running on .NET platform with a base set of Data Types.
      • Everything in the CTS is an object
      • Most languages implement aliases to those types
      • e.g. a four-byte integer value is represented by the CTS type System.Int32 but C# defines an alias for this type called int .
    • Common Language Specification [CLS]
    • The CLS is a set of rules that a language compiler must follow in order to create .NET applications
      • The CLS defines the following things
        • Common variable types (called CTS )
        • Common visibility like when and where can one see these variables,
        • Common method specifications , and so on.
  • 8. Inside the .NET Framework Contd…
    • Common Language Runtime [CLR]
    • Manages the execution of code compiled for the .NET platform.
    • Following Steps occur in CLR:
      • Managed Code created by VB or C# compilers and converted into MSIL .
      • MSIL contains the IL Code and the METADATA .
      • MSIL is kept in a file called ASSEMBLY along with Metadata .
      • CLR loads and verifies the assembly to make sure that IL is ok.
      • Just In Time Compiler [JIT] in CLR converts this IL to machine code.
      • Garbage Collector - Automatic allocation and release of Memory.
      • Base Class Library allow us to interact with the runtime, and provide additional useful functionality. Provides services and Objects needed to write applications.
  • 9. Compilation & Execution Source Code Compilation Code (IL) Metadata MSIL Language Compiler Native Code Execution JIT Compiler
  • 10. ASP.NET Architecture
    • Web clients communicate with ASP.NET applications through IIS .
    • IIS authenticates the request.
    • If “ Allow Anonymous” is turned on, no authentication occurs.
    • IIS also finds the requested resource.
    • If the Client is authorized, IIS returns the appropriate resource.
    Web Clients ASP.NET Applications IIS .NET Framework Windows NT/2000/XP Operating System
  • 11. ASP.NET Application Types
    • Two types of Applications:
      • Web Forms:
      • XML web services.
    • Web forms allow us to build form-based web pages .We can use ASP.NET server controls to create common UI elements, and program them for common tasks .
    • XML Web services are software applications that use XML to exchange data (information) with other applications on other computers by using Internet protocols.
  • 12. ASP.NET and ASP
    • Multiple language Support
    • ASP.NET pages are compiled.
    • Functional Codes separated from presentation code.
    • Browser-independent applications.
    • Memory leak, deadlock, and crash protection.
    • Better performance due to caching of code during compilation.
    • Provides more security and stability because of the .NET Framework.
    • Only scripting languages supported
    • ASP pages are interpreted.
    • Both HTML and script are present in a single page.
    • Browser-dependent applications.
    • No such protections available in classical ASP.
    • ASP pages are not compiled hence performance is not good as compared to ASP.NET.
    • Security and Stability is not optimum as compared to ASP.NET
    ASP ASP.NET
  • 13. Thank You