Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.

Slides:



Advertisements
Similar presentations
Introduction to .NET Framework
Advertisements

Tahir Nawaz Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a.
Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
DT228/3 Web Development WWW and Client server model.
11 ASP.NET Slides based off:. 22 B ACKGROUND - W EB A RCHITECTURE Web Server PC/Mac/Unix/... + Browser Client Server Request:
Languages for Dynamic Web Documents
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Building Applications using ASP.NET and C# / Session 1 / 1 of 21 Session 1.
Introduction to ASP.NET. 2 © UW Business School, University of Washington 2004 Outline Static vs. Dynamic Web Pages.NET Framework Installing ASP.NET First.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
Web-Based Applications
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 1.
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
Introduction to Web Interface Technology (CSE2030)
Introduction to Web Interface Technology (CSE2030)
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
Web Design Basic Concepts.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Internet Applications Notes for Chapter 19 Digital Domain, 2 ed.
LAYING OUT THE FOUNDATIONS. OUTLINE Analyze the project from a technical point of view Analyze and choose the architecture for your application Decide.
© 2004 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Programming the Web Using ASP.Net Chapter 2: The ASP.Net Template Dave.
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
ASP.NET INTRODUCTION INTO وزارة التربية و التعليم العالي كلية العلوم و التكنولوجيا قسم علوم الحاسوب و تكنولوجيا المعلومات اعداد الاستاذ: عبد الله محمد.
An Introduction to ASP.NET Ed Dunhill blogs.msdn.com/edunhill SLIDE7.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
ASP.NET The.NET Framework. The.NET Framework is Microsoft’s distributed run-time environment for creating, deploying, and using applications over the.
Meir Botner David Ben-David. Project Goal Build a messenger that allows a customer to communicate with a service provider for a fee.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
Fundamentals of Database Chapter 7 Database Technologies.
Introduction to ASP.NET 1www.tech.findforinfo.com.
The Web Architecture and ASP.NET. Slide 2 Review of the Web (1) It began with HTTP and HTML, which delivers static Web pages to browsers which would render.
CIS 451: ASP.NET Concepts Dr. Ralph D. Westfall January, 2009.
Introduction to ASP.NET1. 2 Web applications in general Web applications are divided into two parts –The server part –The client part The server part.
Rajiv and Shipra Introduction to.NET (asp.net,c#,vb)
ASP.NET &.NET Environment. Overview Part of Microsoft’s.NET environment Used for Development of  Websites  Internet applications  Web Services & XML.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
Web Development Process The Site Development Process Site Construction is one of the last steps.
Key Components of.NET Framework  Common Language Runtime  CLR at Design time  CLR at Runtime  Class Library  Assemblies  Namespaces  ASP.NET  Applications.
Module 1: Overview of the Microsoft .NET Framework
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
Introduction and Principles Web Server Scripting.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
PROGRAMMING IN VISUAL BASIC.NET CREATING YOUR FIRST WEB APPLICATION Bilal Munir Mughal 1 Chapter-3.
CIS 375—Web App Dev II ASP.NET 1 Getting Started.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
1 LM 6 Database Applications Dr. Lei Li. Learning Objectives Explain three components of a client-server system Describe differences between a 2-tiered.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
ASP.NET developing web applications based on Microsoft.NET Framework.
Haritha Dasari Josue Balandrano Coronel -
Web Development Using ASP .NET
Lecture 1: Multi-tier Architecture Overview
ASP.NET Module Subtitle.
Presentation transcript:

Architecture Of ASP.NET

What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting code is interpreted on server side.

What can I do with ASP?  Easily and quickly create simple Web applications.  Generate dynamic Web content.  Client-side scripting for validation.  Access COM components to extend functionality. Database

ASP Shortcomings  Mixes layout (HTML) and logic (scripting code)  Interpreting ASP code leads to performance loss  Uses scripting languages that are not strongly typed Microsoft Jscript Microsoft Visual Basic Scripting Edition (VBScript)  Browser Compatibility  No real state management No state sharing across Web farms State is lost when IIS fails  Update files only when server is down

What is ASP.NET ?  ASP.NET is a server side technology for developing web applications based on the Microsoft.NET framework.  ASP.NET is a server side technology.  In a client side technologies like HTML, Javascript and Cascading Style Sheets (CSS) the client is entirely responsible.  In server side technologies like ASP.NET, the server is responsible for creating web pages.

 ASP.NET is a technology for developing web applications. Web applications usually (but not always) store information in a DB, and allow visitors to the site to access and change that information. Many supported languages have been developed to create web applications: PHP, JSP, Ruby on Rails, CGI and ColdFusion. ASP.NET lets you to write web applications using a variety of familiar programming languages.  ASP.NET uses the Microsoft.Net Framework. The.Net Framework collects all the technologies needed for building windows desktop applications, web applications, web services and so on into a single package.

How ASP.NET works?

 User : The transaction starts and ends with the user. The user operates the web client software and interprets the results.  Web Client : This is the software program that the person uses to interact to the web application. The client is usually a web browser, such as Internet Explorer or Firefox.  Web Server : This is the software program located on the server. It processes request made by the web client.

Features of ASP.NET  Enhanced Performance ASP.NET is compiled common language runtime code running on the server. Take advantage of early binding, just-in-time compilation, native optimization and caching services.  World Class Tool Support WYSIWYG editing, drag and drop server controls and automatic deployment.  Power and Flexibility Because ASP.NET is based on the Common Language Runtime..NET Framework class library, Messaging and Data Access solutions are all seamlessly accessible from the web.

 Simplicity The ASP.NET page framework allows you to build user interfaces that cleanly separate application logic from presentation code and to handle events in a simple way. CLR simplifies development with managed code services.  Manageability ASP.NET employs a text based, hierarchical configuration system which simplifies applying settings to your server environment and web applications. No server restart is required even to deploy or replace running compiled code.  Scalability and Availability Processes are closely monitored and managed by the ASP.NET runtime, so that if one misbehaves(leaks, deadlocks), a new process can be created in its place.

 Customizability and Extensibility It is possible to extend or replace any subcomponent of the ASP.NET runtime with your own custom-written component.  Security built in windows authentication and per application configuration, you can be assured that your applications are secure.

ASP.NET vs ASP  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 is not fully backward compatible with ASP.

What is ASP.NET Web Forms ?  The ASP.NET Web Forms Page Framework is a scalable common language runtime programming model that can be called on the server to dynamically generate web pages.  It provides : The ability to create and use reusable UI controls that can encapsulate common functionality and thus reduce the amount of code that a page developer has to write. The ability for developers to cleanly structure their page logic in an orderly fashion. The ability for development tools to provide strong WYSIWYG design support for pages(existing ASP code is opaque to tools). Managed execution environment, type safety, inheritance and dynamic compilation. A set of state management features that preserves the view state of a page between requests.

Challenges in Web Application  Implementing a rich Web User Interface  Separation of client and server  Stateless execution  Unknown client capabilities  Complications with data access

ASP.NET addresses these Challenges  Intuitive, consistent object model  Event driven programming model  Intuitive state management  Browser-independent applications .NET Framework common language runtime support

 In ASP.NET web pages, is divided into two pieces : the visual component and the logic.  The visual element consist of a file containing static markup such as HTML or ASP.NET server controls or both.  The ASP.NET Web Page works as container for the static text and controls you want to display.  The logic for the ASP.NET web page consist of code that you create to interact with the page.  The code can reside either in a script block in the page or in a separate class.  If the code is in a separate class file, this file is referred to as the code-behind file.

ASP.NET Web Page Code Model  In ASP.NET Web Page consists of two parts : Visual Elements which include markup, server controls and static text. Programming logic for the page which includes event handlers and other code.  ASP.NET provides two models for managing the visual elements and code – the single - file page model and the code – behind page model.  The two models functions the same and you can use the same controls and code for both models.

Single – File Page (In – Page) Model  In single – file page model, the page’s markup and its programming code are in the same physical.aspx file.  The programming code is in a script block that contains the attribute runat=“server” to mark it as code that ASP.NET should execute.

Code – Behind Page Model  The code – behind page model allows you to keep the markup in one file – the.aspx file and the programming code in another file.  There are two differences in the.aspx page between the single – file and the code – behind models. In the code – behind model, there is no script block with the runat=“server” attribute. The second differences is that directive in the code – behind model contains attributes that reference an external file (SamplePage.aspx.vb or SamplePage.aspx.cs) and a class. These attributes links the.aspx page to its code.

Advantages of Single – File Pages  In pages where there is not very much code, the convenience of keeping the code and markup in the same file can outweigh other advantages of the code-behind model.  Pages written using the single-file model are slightly easier to deploy or to send to another programmer because there is only one file.  Because there is no dependency between files, a single file page is easier to rename.  Managing files in a source code control system is slightly easier, because the page is self-contained in a single file.

Advantages of Code – Behind Pages  Code – behind pages offer a clean separation of the markup (user interface) and code. It is practical to have a designer working on the markup while a programmer writes code.  Code is not exposed to page designers or others who are working only with the page markup.  Code can be reused for multiple pages.