Title: Advanced Data Presentation Techniques via the Internet
1Advanced Data Presentation Techniques via the
Internet
- Session IIA
- Active Server Pages
- Henry Weigel
- May 24, 2000
- Bangladesh Ministry of Energy and Mineral
Resources
2The Intranet Approach
- The use of scripting and coding
- Allaires Cold Fusion
- Microsofts Active Server Pages (ASP)
3The Basic Idea
- Interactive with user
- Dynamic data (information) retrieval
- The use of a database
- Using queries to define data be requested or sent
- Using Structured Query Language (SQL)
4Example 1 The Office Intranet
- Initially developed by a manager
- To be extended to the Agency
- Uses ASP
- Linked to password-controlled database
5Example 2 The Monthly Energy Review
- Using scripting and code
- Selection lists for predefined data tables
- Data retrieved from database
- Demo using a Personal Web Server
- ..\Session3\MER_Demo\default.htm
6Active Server Pages (ASP)
- A Microsoft product announced July 1996, shipped
December 1996 - ASP is a technology for building dynamic and
interactive web pages - Runs on Internet Information Server
- Runs on Personal Web Server
- Two-way communication between user and web server
(database)
7ASP How It Works
- Used with html generates html pages
- Read request from browser (ditto html)
- Finds the page on the server (ditto html)
- Performs any instructions provided by ASP to
modify the page (not in html) - Send the page back across the Internet to the
browser (ditto html)
8ASP Advantages Over HTML
- HTML is interpreted by the browser, not executed
on the server - Can edit database rather than web page code
- Customize pages
- Communicate with database from the browser
9Microsofts FrontPage
- Tool for developing web pages using wizards
- Manage a Personal Web
- Graphical user interface for HTML and ASP page
development - FP98 and FT2000 server extensions
10The Use of HTML and Active Server Pages
- The Offices Intranet
- ..\Session3\EMEU_Intranet\emeusafe\default.asp
11Home Page
12Products Page
13Performance Statistics
14Performance Statistics 2
15Posting News/Notes
16Using MS Front Page
17Themes Feature
18Navigation Bar Properties
19Shared Borders
20Hyperlinks Schematic
21Navigation Through Pages
22Drag and Drop Pages
23The Use of Input Forms
24ASP Connecting to Database
25ASP to Query the Monthly Energy Review
- An Example of writing code to invoke ASP
functionality
26MER Title Page
27MER Second-Level Page
28MER Second-Level Page, Contd.
29MER Third-Level Page
30Back to Second-Level
31Another Third-Level
32MER Title Page Consumption
33MER Energy Consumption
34MER Consumption 2
35MER consumption 3
36Title Page Code 1
37Title Page Code 2
38Title Page Code 3
39FrontPage 2000 and ASP Major Steps in Development
- Open FrontPage, (web server must be running)
Select File, New Web, Personal Web - Theme and Shared Borders
- Identify External info for inclusion
- Develop HTM Pages
- Develop ASP Pages
- Hook Pages together
- Define other hyperlinks
40Open New Web in FrontPage2000
41FP2000 Theme Selection
42FP2000 Banner Properties
43FP2000 Shared Borders
44Navigation Bar Properties
45FP2000 Page Properties
46Page Navigation
47Home (Default) Page
48Database Connection
- Establish ODBC Database connection in Start,
Settings, Control Panel, ODBC, System DSN, Add
mdb driver and select Database - Insert Menu Database, Results
- Use new DB connection Create
- Select Database, Add, Select System data source
on web server, Browse, Verify. Use existing DB
Connection - Make selections from Wizard
- Select Record and edit fields
49ODBC Connection
50DB Wizard Make a DB Connection
51DB Wizard Select Record Source
52Edit the Field List
53DB insert Table Structure
54Coal Database Connection
55Electricity Database Connection