Overview of Previous Lesson(s) Over View  ASP is a technology that enables scripts in web pages to be executed by an Internet server.  ASP.NET is a.

Slides:



Advertisements
Similar presentations
Unit 02. ASP.NET Introduction HTML & Server controls Postbacks Page Lifecycle.
Advertisements

The Web Warrior Guide to Web Design Technologies
Languages for Dynamic Web Documents
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Working with ASP Pages. Slide 2 The Tag (1) Remember that most ASP.NET pages contain a single tag with the runat attribute set It’s possible to have multiple.
Anatomy of an ASP.NET Page. Slide 2 My Version of the Big Picture (1) ASP Worker (Engine) Your application Runs Server Other applications User 1User 2.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 3-1 of…
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
Server-Side Scripting with ASP.Net ISYS 546. ASP.NET ASP.NET is a server-side technology for creating dynamic web pages. ASP.NET allows you to use a selection.
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
Introduction to ASP.NET
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
Introduction to ASP.Net ISYS 350. ASP.NET ASP.NET is a server-side technology for creating dynamic web pages. ASP.NET allows you to use a selection of.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Beginning Active Server Pages Barry Sosinsky Valda Hilley Programming.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
JavaScript & jQuery the missing manual Chapter 11
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
HTML, GUI, ASP.NET Rina Zviel-Girshin Lecture 2
ASP.NET INTRODUCTION INTO وزارة التربية و التعليم العالي كلية العلوم و التكنولوجيا قسم علوم الحاسوب و تكنولوجيا المعلومات اعداد الاستاذ: عبد الله محمد.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
Overview of Previous Lesson(s) Over View  Server controls are small building blocks of the graphical user interface, which includes  Text boxes  Buttons.
February 16, Aaron Cuffman Andy Nagle Adam Schultz Web Site.
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  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
Christopher M. Pascucci.NET Programming: Forms & Controls.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
JSP Java Server Pages Softsmith Infotech.
INSPIRING CREATIVE AND INNOVATIVE MINDS Module 4: Adding Code to a Microsoft ASP.NET Web Form Implementing Code-Behind Pages Adding Event Procedures to.
ASP.NET Web Server Controls Basic Web Server Controls.
© Minder Chen, ASP.NET 2.0: Introduction - 1 ASP.NET 2.0 Minder Chen, Ph.D. Framework Base Class Library ADO.NET: Data & XML.
ASP.NET Controls. Slide 2 Lecture Overview Identify the types of controls supported by ASP.NET and the differences between them.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
ASP.NET.. ASP.NET Environment ASP.NET is Microsoft's programming framework that enables the development of Web applications and services. It is an easy.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Tracing 1www.tech.findforinfo.com. Contents Why Tracing Why Tracing Tracing in ASP.NET Tracing in ASP.NET Page Level tracing Page Level tracing Application.
CSCI 6962: Server-side Design and Programming AJAX Tools in JSF and ASP.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Unit 3: Adding Code to a Microsoft ASP.NET Web Form.
Overview of Previous Lesson(s) Over View  SDI programs  The Application Wizard can generate single-document interface (SDI) applications that work.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Anatomy of an ASP.NET Page. Slide 2 Compiling an ASP.NET Page An ASP.NET page is compiled when it is rendered for the first time A page is compiled to.
Module 1: Working with ASP.NET. Overview Introducing ASP.NET Creating Web Forms Adding ASP.NET Code to a Page Handling Page Events Discussion: ASP vs.
Module 3: Using Microsoft.NET- Based Languages. Overview Overview of the.NET-Based Languages Comparison of the.NET-Based Languages.
The Problem of State. We will look at… Sometimes web development is just plain weird! Internet / World Wide Web Aspects of their operation The role of.
The Module Road Map Assignment 1 Road Map We will look at… Internet / World Wide Web Aspects of their operation The role of clients and servers ASPX.
ASP.NET 4 Unleashed Chapter 1. .aspx page: contains C# script and HTML code including tags. Listing 1.1 FirstPage.aspx.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Christopher M. Pascucci.NET Programming: WebForm Events.
Module 4: Creating a Web Application with Web Forms
CSI 3125, Preliminaries, page 1 SERVLET. CSI 3125, Preliminaries, page 2 SERVLET A servlet is a server-side software program, written in Java code, that.
ASP.NET P AGE O BJECTS.  Each ASP.NET page inherits the PAGE object  The PAGE supplies 3 built in objects:  REQUEST: All information passed to the.
Asp.NET Core Server Controls. Slide 2 Lecture Overview Understanding the types of ASP.NET controls HTML controls ASP.NET (Web) controls.
Text INTRODUCTION TO ASP.NET. InterComm Campaign Guidelines CONFIDENTIAL Simply Server side language Simplified page development model Modular, well-factored,
PostBack  When an initial request for a page (a Web Form) is received by ASP.NET, it locates and loads the requested Web Form (and if necessary compiles.
Event Handling & Viewstate CS 351 Ed Gellenbeck. Today Review of Web Forms ASP.NET Object Hierarchy Events State Management Page State Session State Application.
 ASP.NET provides an event based programming model that simplifies web programming  All GUI applications are incomplete without enabling actions  These.
Sergey Sidorov PhD student, computer software chair Computer Science department.
ASP.NET Architecture Mike Taulty Developer & Platform Group Microsoft Ltd
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Web Development in Microsoft Visual Studio 2013
Anatomy of an ASP.NET Page
Module 10: Creating a Web Application with Web Forms
Web Development Using ASP .NET
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
Presentation transcript:

Overview of Previous Lesson(s)

Over View  ASP is a technology that enables scripts in web pages to be executed by an Internet server.  ASP.NET is a web development platform, which provides a programming model.  To build a comprehensive software infrastructure and various services required to build up robust web application for PC, as well as mobile devices 3

Over View..  ASP.NET has better language support, a large set of user controls, XML-based components, and integrated user authentication.  ASP.Net applications could be written in  C#  Visual Basic.Net  Jscript  J# 4

Over View…  The ASP.Net component model provides various building blocks of ASP.Net pages.  It is an object model, which describes  Server side counterparts of almost all HTML elements or tags, like and.  Server controls, which help in developing complex user-interface for example the Calendar control or the Gridview control. 5

Over View…  ASP.Net Life Cycle  ASP.Net processes pages to produce dynamic output  The application and its pages are instantiated and processed  ASP.Net compiles the pages dynamically 6

Over View…  ASP.NET Pages  Modular in nature and divided into the following core sections  Page directives  Code Section  Page Layout 7

Contents  Event Handling  Application Events  Session Events  Page & Control Events  Default Events  Server Object  Request Object  Response Object 9

Event Handling  Event is an action or occurrence  Mouse click,  Key press,  Mouse movements,  Any system generated notification.  The processes communicate through events. 10

Event Handling..  In ASP.Net an event is raised on the client, and handled in the server.  A user clicks a button displayed in the browser. A Click event is raised.  The browser handles this client-side event by posting it to the server.  The server has a subroutine describing what to do when the event is raised, called the event-handler. 11

Event Handling..  When an event message is transmitted to the server, it checks whether the Click event has an associated event handler, and if it has, the event handler is executed. private void EventName (object sender, EventArgs e);  Event Arguments  Two parameters and return void.  1st parameter represents the object raising the event.  2ns parameter is called the event argument. 12

Application Events Some important application events are:  Application_Start  It is raised when the application/website is started  Application_End  It is raised when the application/website is stopped. 13

Session Events  The most used Session events are  Session_Start  Raised when a user first requests a page from the application  Session_End  Raised when the session ends 14

Page & Control Events  Common page and control events are..  DataBinding  Raised when a control bind to a data source  Disposed  When the page or the control is released  Error  It is an page event, occurs when an unhandled exception is thrown 15

Page & Control Events..  Init  Raised when the page or the control is initialized  Load  Raised when the page or a control is loaded  PreRender  Raised when the page or the control is to be rendered  Unload  Raised when the page or control is unloaded from memory 16

Event Handling Using Controls  All ASP.Net controls are implemented as classes.  They have events which are fired when user performs certain action on them.  Ex, when a user clicks a button the 'Click' event is generated.  For handling these events there are in-built attributes and event handlers.  To respond to an event, the event handler is coded. 17

Event Handling Using Controls..  By default Visual Studio creates an event handler by including a Handles clause on the Sub procedure.  This clause names the control and event that the procedure handles.  Tag for a button control 18

Event Handling Using Controls...  The event handler for the Click event: Protected Sub btnCancel_Click ( ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCancel.Click End Sub  An event can also be coded without a Handles clause. 19

Event Handling Using Controls...  Then the handler must be named according to the appropriate event attribute of the control. Protected Sub btnCancel_Click ( ByVal sender As Object, ByVal e As System.EventArgs) End Sub 20

Event Handling Using Controls...  Common control events 21

Default Events  Default event for the Page object is the Load event.  Every control has a default event.  Ex, default event for the button control is the Click event.  Default event handler could be created in Visual Studio, just by double clicking the control in design view. 22

Default Events.. 23

Events Example  Lets check some events practically. 24

Intrinsic Objects  We already discussed the page life cycle and how a page contains various controls.  The page itself is instantiated as a control object.  All web forms are basically instances of the ASP.Net Page class.  The page class has the extremely useful properties that correspond to intrinsic objects. 25

Intrinsic Objects..  Session  Application  Cache  Request  Response  Server  User  Trace  Lets see the Server Object. 26

Server Object  Server object is an instance of the System.Web.HttpServerUtility class.  The HttpServerUtility class provides numerous properties and methods to perform various jobs.  The methods and properties of the HttpServerUtility class are exposed through the intrinsic Server object provided by ASP.NET. 27

Properties of the Server Object  The following table provides a list of the properties 28

Methods of the Server Object 29

Request Object  An instance of the System.Web.HttpRequest class.  It represents the values and properties of the HTTP request that makes the page loading into the browser.  The information presented by this object is wrapped up by the higher level abstractions (the web control model), however, this object helps in checking some information like the client browser and cookies. 30

Properties of Request Object.. 31

Methods of the Request Object 32

Response Object  Represents the server's response to the client request.  It is an instance of the System.Web.HttpResponse class.  In ASP.Net, the Response object does not play a vital role in sending HTML text to the client, because the server-side controls have nested, object oriented methods for rendering themselves. 33

Response Object..  The HttpResponse object still provides some important functionalities, like the cookie feature and the Redirect() method.  The Response.Redirect() method allows transferring the user to another page, inside as well as outside the application.  It requires a round trip. 34

Properties of Response Object 35

Properties of Response Object.. 36

Methods of Response Object 37

Methods of Response Object.. 38

Server Side Ex  Lets see an example.. 39

Thank You 40