Presentation is loading. Please wait.

Presentation is loading. Please wait.

IS 4506 Interactive Clients & Servers.  Overview Fat Client versus Fat Server Spectrum of Web content formats Active Server Pages Active Server Page.

Similar presentations


Presentation on theme: "IS 4506 Interactive Clients & Servers.  Overview Fat Client versus Fat Server Spectrum of Web content formats Active Server Pages Active Server Page."— Presentation transcript:

1 IS 4506 Interactive Clients & Servers

2  Overview Fat Client versus Fat Server Spectrum of Web content formats Active Server Pages Active Server Page elements Use of the script tag

3 Client /Server Architecture Server PCs Middleware

4 Web Client/Server Architecture Client Web Browser HTTP Server INTERNETINTRANET

5 Spectrum of Web Content Formats Personalization and Transaction Processing Static Active Linked (Basic) Content Dynamic HTML Data-bound Applications Interactive Applications

6 Active Server Pages Dynamic content Easy database connectivity Scalable server-side solution Integrated state and user management Reusable software model

7  Active Server Page Elements ASP scripts Objects ASP built-in objects Installable ASP objects Installable ASP components Component creation

8 ASP Scripts Flexible server-side scripting Exposes object model Components accessed using properties and methods Temperature conversion example VBScript code

9  Objects ASP built-in objects Installable ASP objects

10 ASP Built-in Objects Server Object Application Object Session Object Request Object Response Object ObjectContext Object

11 Component Creation Created in any language Components follow the COM standard Accessed only by the server Extend ActiveX server components

12 Use of the Script Tag Script tag on Active Server Pages <% Code %>

13 ASP Examples Hello.htm Hello.asp Form.htm

14 Hello.htm Static Hello Hello World!

15

16 Hello.asp Active Hello Page > Hello World!

17

18 Form.htm Order Sample Order Form Please provide the following info, then click Submit: Title: First Name: Last Name:

19

20 Response.asp Thank you, <% Title = Request.Form("title") LastName = Request.Form("lname") If Title = "mr" Then %> Mr. Ms. for your order.

21

22 Response2.asp <% Title = Request.Form("title") LastName = Request.Form("lname") FirstName = Request.Form("fname") Response.Write "Thank you " If Title = "mr" Then Response.Write "Mr." & LastName ElseIf Title = "ms" Then Response.Write "Ms." & LastName Else Response.Write FirstName & " " & LastName End If Response.Write " for your order!!" %>

23 mail.asp <% Dim Message Set message = CreateObject("CDONTS.NewMail") message.send Request.Form("From"), Request.Form("To"), Request.Form("Subject"), Request.Form("text") Set message = Nothing %> The Following Email Has Been Sent: From: To: Subject: Text:

24 Lab 11: Active Server Pages

25 Review Spectrum of Web content formats Active Server Pages Active Server Pages elements Use of the script tag


Download ppt "IS 4506 Interactive Clients & Servers.  Overview Fat Client versus Fat Server Spectrum of Web content formats Active Server Pages Active Server Page."

Similar presentations


Ads by Google