introduction to web design and application...
TRANSCRIPT
![Page 1: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/1.jpg)
Partnership with Enterprises Towards Building Open
Source Communities and
Rejuvenation Technical Education and Innovation
Introduction
to
Web Design and
Application Development
1 A. Al-Tamimi © Lecture 15
![Page 2: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/2.jpg)
Lecture Overview
• Static vs. Dynamic Web Content
• Server Pages Technologies
• ASP.NET Page Lifecycle
• Response and Request Objects
Lecture 15 2 A. Al-Tamimi ©
![Page 3: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/3.jpg)
Static web Content
Lecture 15 3 A. Al-Tamimi ©
![Page 4: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/4.jpg)
Dynamic web Content
Lecture 15 4 A. Al-Tamimi ©
![Page 5: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/5.jpg)
Server Pages Technologies
• Despite the essential similarity, we can categorize
dynamic technology into three broad types:
• Direct output
• Page scripting
• Hybrid
Lecture 15 5 A. Al-Tamimi ©
![Page 6: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/6.jpg)
Direct output: Java Servlet Code
Lecture 15 6 A. Al-Tamimi ©
![Page 7: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/7.jpg)
Page Scripting: PHP/ASP
Lecture 15 7 A. Al-Tamimi ©
![Page 8: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/8.jpg)
Client-based event system
Lecture 15 8 A. Al-Tamimi ©
![Page 9: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/9.jpg)
ASP.NET event system
Lecture 15 9 A. Al-Tamimi ©
![Page 10: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/10.jpg)
Postback
• In ASP.NET, postback is the process by which the
browser posts information back to itself
– only server controls postback information to the server
• There are two different event types in ASP.NET: page events and control events
• When a page request is sent to the server, a specific series
of page events is always triggered in a specific order
• Control events are associated with particular
controls and are fired in certain circumstances
Lecture 15 10 A. Al-Tamimi ©
![Page 11: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/11.jpg)
Postback flow
Lecture 15 11 A. Al-Tamimi ©
![Page 12: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/12.jpg)
Page Lifecycle
Lecture 15 12 A. Al-Tamimi ©
![Page 13: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/13.jpg)
Request object
• The Request property of the Page class returns
an HttpRequest object
• This HttpRequest represents the HTTP values
sent by the browser with its request
• It contains members for retrieving query string
or form parameters, cookie data, as well as
information about the requesting browser
Lecture 15 13 A. Al-Tamimi ©
![Page 14: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/14.jpg)
Response Object
• Analogous to the just-covered Request property,
the Response property of the Page class returns
an HttpResponse object
• The HttpResponse class represents the server’s
HTTP response to the current request
Lecture 15 14 A. Al-Tamimi ©
![Page 15: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/15.jpg)
Resources
• Core Internet Application Development with ASP.NET
2.0 by Randy Connolly
Lecture 15 A. Al-Tamimi © 15
![Page 16: Introduction to Web Design and Application Developmentwiki.osscom.org/images/8/89/IntroWeb_Lecture15.pdf · •In ASP.NET, postback is the process by which the browser posts information](https://reader033.vdocuments.us/reader033/viewer/2022052102/603cdf2c746a9033d563bc7c/html5/thumbnails/16.jpg)
Questions
A. Al-Tamimi © 16 Lecture 15