1. Trang chủ
  2. » Công Nghệ Thông Tin

Web Development with Internet Information Server 4.0 pot

80 332 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Web Development with Internet Information Server 4.0
Trường học Microsoft
Chuyên ngành Web Development
Thể loại Course overview
Định dạng
Số trang 80
Dung lượng 1,06 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Microsoft Enterprise and Support Training Microsoft Confidential Web Development with Internet Information Server 4.0... Microsoft Enterprise and Support Training Microsoft Confidential

Trang 1

Microsoft Enterprise and Support Training Microsoft Confidential

Web Development with Internet

Information Server 4.0

Trang 2

Microsoft Enterprise and Support Training Microsoft Confidential

Course Overview

Introduction to Server Side Development

Administration and Configuration

Tools and Debugging

Built-in Object

Installable Components

Trang 3

Microsoft Enterprise and Support Training Microsoft Confidential

Module 1:

Introduction to Server

Side Development

Trang 4

Microsoft Enterprise and Support Training Microsoft Confidential

Module 1 Objectives

At the end of this module, you will be able to:

or functions/subroutines

Trang 5

Microsoft Enterprise and Support Training Microsoft Confidential

Browsing HTML

Trang 6

Microsoft Enterprise and Support Training Microsoft Confidential

Browsing Active Server Page

Trang 7

Microsoft Enterprise and Support Training Microsoft Confidential

Active Server Pages

Runs on the server

Uses <% %> delimiters or <Script RunAt=Server>

Currently JScript and VBScript

Script Engine SDK creates others

Trang 8

Microsoft Enterprise and Support Training Microsoft Confidential

Web Applications

Application Root

GLOBAL.ASA

Trang 9

Microsoft Enterprise and Support Training Microsoft Confidential

Application Roots

Trang 10

Microsoft Enterprise and Support Training Microsoft Confidential

Simple Active Server Script

Trang 11

Microsoft Enterprise and Support Training Microsoft Confidential

Simple Active Server Script, cont

Trang 12

Microsoft Enterprise and Support Training Microsoft Confidential

Lab

Trang 13

Microsoft Enterprise and Support Training Microsoft Confidential

Module 2:

Administration and

Configuration

Module Page

Trang 14

Microsoft Enterprise and Support Training Microsoft Confidential

Module 2 Objectives

At the end of this module, you will be able to:

Microsoft Management Console and IIS 4.0 property sheets

proper access to ASP

scripts

Related topics:

Trang 15

Microsoft Enterprise and Support Training Microsoft Confidential

Administration

IIS 4.0 Property Sheets

NT User Configuration

Trang 16

Microsoft Enterprise and Support Training Microsoft Confidential

Configuring Applications

Trang 17

Microsoft Enterprise and Support Training Microsoft Confidential

Assigning NT User Permissions

Trang 18

Microsoft Enterprise and Support Training Microsoft Confidential

Troubleshooting Permissions

Temporarily add I_USR* account to Administrators

Enable Auditing on NT box to determine what files could

be causing a problem

Determine if it is an access problem to the Web Server

or a remote server (such as SQL server)

Trang 19

Microsoft Enterprise and Support Training Microsoft Confidential

Lab

Trang 20

Microsoft Enterprise and Support Training Microsoft Confidential

Module 3:

Tools and Debugging

Module Page

Trang 21

Microsoft Enterprise and Support Training Microsoft Confidential

Module 3 Objectives

At the end of this module, you will be able to:

Interdev

Trang 22

Microsoft Enterprise and Support Training Microsoft Confidential

Tools and Debugging

Using Visual Interdev

Using Script Debugger

Trang 23

Microsoft Enterprise and Support Training Microsoft Confidential

Using Visual Interdev

Trang 24

Microsoft Enterprise and Support Training Microsoft Confidential

Using Script Debugger

Trang 25

Microsoft Enterprise and Support Training Microsoft Confidential

Troubleshooting

Is the problem client script or server script?

Trang 26

Microsoft Enterprise and Support Training Microsoft Confidential

Demonstration

Trang 27

Microsoft Enterprise and Support Training Microsoft Confidential

Lab

Trang 28

Microsoft Enterprise and Support Training Microsoft Confidential

Module 4:

Built-in Objects

Module Page

Trang 29

Microsoft Enterprise and Support Training Microsoft Confidential

Module 4 Objectives

At the end of this module, you will be able to:

Trang 30

Microsoft Enterprise and Support Training Microsoft Confidential

Trang 31

Microsoft Enterprise and Support Training Microsoft Confidential

More info

Online help covers built-in objects:

Windows NT 4.0 Option Pack Documentation

 Microsoft Internet Information Server (IIS)

 Scripter’s Reference

 Built-in ASP Objects

Trang 32

Microsoft Enterprise and Support Training Microsoft Confidential

Trang 33

Microsoft Enterprise and Support Training Microsoft Confidential

Response Model, cont

Trang 34

Microsoft Enterprise and Support Training Microsoft Confidential

Trang 35

Microsoft Enterprise and Support Training Microsoft Confidential

Forms with the POST method

<FORM METHOD=“POST” ACTION=url>

Passed to url using HTTP_POST

Must use Request.Form(controlname) to retrieve value

of control

Trang 36

Microsoft Enterprise and Support Training Microsoft Confidential

Forms with the GET method

<FORM METHOD=“GET” ACTION=url>

Passed to url in the address

Must use Request.QueryString(controlname) to retrieve

value of control

Trang 37

Microsoft Enterprise and Support Training Microsoft Confidential

Lab

Trang 38

Microsoft Enterprise and Support Training Microsoft Confidential

Trang 39

Microsoft Enterprise and Support Training Microsoft Confidential

Trang 40

Microsoft Enterprise and Support Training Microsoft Confidential

Trang 41

Microsoft Enterprise and Support Training Microsoft Confidential

Session Model, cont

Trang 42

Microsoft Enterprise and Support Training Microsoft Confidential

Lab

Trang 43

Microsoft Enterprise and Support Training Microsoft Confidential

Cookies

Use Request object to retrieve cookie value

Use Response object to set cookie value

Can be one value or use keys for multiple values

Trang 44

Microsoft Enterprise and Support Training Microsoft Confidential

Lab

Trang 45

Microsoft Enterprise and Support Training Microsoft Confidential

Microsoft Transaction Server

Trang 46

Microsoft Enterprise and Support Training Microsoft Confidential

Trang 47

Microsoft Enterprise and Support Training Microsoft Confidential

Marking a page for transactions

First line of page page must start with

<%@TRANSACTION=REQUIRED%>

You can manually accept or abort a transaction using

SetComplete and SetAbort from ObjectContext

If transaction is committed, OnTransaction_Commit()

event is executed

If transaction is aborted, OnTransaction_Abort() event is executed

In the case of syntax or run-time error,

OnTransaction_Abort() is automatically executed

Requires MSDTC (Distributed Transaction Coordinator)

Trang 48

Microsoft Enterprise and Support Training Microsoft Confidential

Lab

Trang 49

Microsoft Enterprise and Support Training Microsoft Confidential

Module 5:

Installable Components

Module Page

Trang 50

Microsoft Enterprise and Support Training Microsoft Confidential

Module 5 Objectives

At the end of this module, you will be able to:

transactions within ADO

Trang 51

Microsoft Enterprise and Support Training Microsoft Confidential

Trang 52

Microsoft Enterprise and Support Training Microsoft Confidential

More info

Online help covers installable components:

Windows NT 4.0 Option Pack Documentation

 Microsoft Internet Information Server (IIS)

 Scripter’s Reference

 Installable Components for ASP

Trang 53

Microsoft Enterprise and Support Training Microsoft Confidential

Creating Instances of Objects

Set MyAd = Server.CreateObject(“Obj”)

<OBJECT RUNAT=Server ID=MyAd PROGID = “Obj">

Trang 54

Microsoft Enterprise and Support Training Microsoft Confidential

AdRotator Model (“MSWC.AdRotator”)

Trang 55

Microsoft Enterprise and Support Training Microsoft Confidential

Browser Capabilities Model(“MSWC.BrowserType”)

Properties

Methods

Trang 56

Microsoft Enterprise and Support Training Microsoft Confidential

Lab

Trang 57

Microsoft Enterprise and Support Training Microsoft Confidential

ADO Model

(“ADODB.[Connection][Command][Recordset]”)

Trang 58

Microsoft Enterprise and Support Training Microsoft Confidential

Steps to retrieving data

Connect to datasource

Execute query or stored procedure

Step through results

Clean up

Trang 59

Microsoft Enterprise and Support Training Microsoft Confidential

Retrieving records from a recordset

<%

Set rs=Server.CreateObject(“ADODB.Recordset”) rs.Open “Select * from Authors”,”DSN=PubsDSN”

Trang 60

Microsoft Enterprise and Support Training Microsoft Confidential

Adding records to a recordset

Trang 61

Microsoft Enterprise and Support Training Microsoft Confidential

Adding records to a recordset

Trang 62

Microsoft Enterprise and Support Training Microsoft Confidential

Trang 63

Microsoft Enterprise and Support Training Microsoft Confidential

Trang 64

Microsoft Enterprise and Support Training Microsoft Confidential

Common errors with ADO

Predefined constants not recognized because

ADOVBS.INC not included

Improper user permissions setup on remote server

Incorrect connect string

Conflicting versions of driver and database

Wrong cursor set (not updateable or some methods

unavailable)

Trang 65

Microsoft Enterprise and Support Training Microsoft Confidential

Lab

Trang 66

Microsoft Enterprise and Support Training Microsoft Confidential

Content Linking Model(“MSWC.NextLink”)

Trang 67

Microsoft Enterprise and Support Training Microsoft Confidential

Scripting Object Model

Trang 68

Microsoft Enterprise and Support Training Microsoft Confidential

Lab

Trang 69

Microsoft Enterprise and Support Training Microsoft Confidential

CDO Model (“CDONTS.[Session][NewMail]”)

Trang 70

Microsoft Enterprise and Support Training Microsoft Confidential

Trang 71

Microsoft Enterprise and Support Training Microsoft Confidential

Demonstration

Trang 72

Microsoft Enterprise and Support Training Microsoft Confidential

Lab

Trang 73

Microsoft Enterprise and Support Training Microsoft Confidential

Trang 74

Microsoft Enterprise and Support Training Microsoft Confidential

Trang 75

Microsoft Enterprise and Support Training Microsoft Confidential

Lab

Trang 76

Microsoft Enterprise and Support Training Microsoft Confidential

MyInfo Model(“MSWC.MyInfo”)

Stores personalized info about the web server

Create custom properties on the fly

Personal Web Server (PWS) comes with several preset values for MyInfo

See online help for specifics

Trang 77

Microsoft Enterprise and Support Training Microsoft Confidential

Trang 78

Microsoft Enterprise and Support Training Microsoft Confidential

Permission Checker Model

(“MSWC.PermissionChecker”)

Methods

Trang 79

Microsoft Enterprise and Support Training Microsoft Confidential

Trang 80

Microsoft Enterprise and Support Training Microsoft Confidential

Publications

Publications

Ngày đăng: 22/03/2014, 10:20

TỪ KHÓA LIÊN QUAN