 2004 Prentice Hall, Inc. All rights reserved. Chapter 24 – Case Study: ASP.NET and XML Outline 24.1 Introduction 24.2 Setup and Message Forum Documents.

Slides:



Advertisements
Similar presentations
 2004 Prentice Hall, Inc. All rights reserved. Chapter 23 – ASP.NET Outline 23.1 Introduction 23.2.NET Overview NET Framework ASP (Active.
Advertisements

CG0119 Web Database Systems Parsing XML: using SimpleXML & XSLT.
 2001 Prentice Hall, Inc. All rights reserved. 1.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 24 - VBScript Outline 24.1 Introduction 24.2 Operators 24.3 Data Types and Control Structures.
XML: Managing Data Exchange Stylesheets. Lesson Contents CSS The basic XSL file XSL transforms Templates Sort Numbering Parameters and Variables Datatypes.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 13-1 COS 346 Day 24.
Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. How to Create Web Pages Using HTML Introduction.
XML Unit 6 October 31. XML, review XML is used to markup data Used to describe information Uses tags like HTML –But all tags are user-defined –Must be.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 11 – XML Path Language (XPath) Outline 11.1Introduction 11.2Nodes 11.3Location Paths Axes.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
Chapter 9 Introduction to the Document Object Model (DOM) JavaScript, Third Edition.
Microsoft Office XP Illustrated Introductory, Enhanced Office Applications with Internet Explorer Integrating.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
1 Chapter 20 — Creating Web Projects Microsoft Visual Basic.NET, Introduction to Programming.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 25 – Perl and CGI (Common Gateway Interface) Outline 25.1 Introduction 25.2 Perl 25.3 String Processing.
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 37 - JavaServer Pages (JSP): Bonus for Java Developers Outline 37.1 Introduction 37.2 JavaServer.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
INTRODUCTION TO CLIENT-SIDE WEB PROGRAMMING ACM 511 ACM 262 Course Notes.
JavaScript: Control Structures September 27, 2005 Slides modified from Internet & World Wide Web: How to Program (3rd) edition. By Deitel, Deitel,
 2004 Prentice Hall, Inc. All rights reserved. Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 13 - Dynamic HTML: Object Model and Collections Outline 13.1 Introduction 13.2 Object Referencing.
WORKING WITH XSLT AND XPATH
XP New Perspectives on XML, 2 nd Edition Tutorial 10 1 WORKING WITH THE DOCUMENT OBJECT MODEL TUTORIAL 10.
 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 11 - JavaScript: Arrays Outline 11.1 Introduction 11.2 Arrays 11.3 Declaring and Allocating Arrays.
Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 12: Introduction to ASP.NET Programming the World Wide Web 2009 Fifth Edition by.
1 JavaScript: Objects and Object Models October 25, 2005 Slides modified from Internet & World Wide Web: How to Program (3rd) edition. By Deitel,
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Exploring Microsoft Office Word 2007 Chapter 8 Word and the Internet Robert Grauer, Keith.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 21 - Web Servers (IIS, PWS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3.
HTML, XHTML, and CSS Sixth Edition Chapter 1 Introduction to HTML, XHTML, and CSS.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 34 - Case Study: Active Server Pages and XML Outline 34.1 Introduction 34.2 Setup and Message.
IST 221 Internet Concepts and Applications Introduction to XML II CSS and XSLT Style Sheets.
CIS 375—Web App Dev II XSL. 2 XSL Introduction XSL stands for _____________________________. XSL is the language used for manipulating and displaying.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 15 – Case Study: Message Forum with Active Server Pages Outline 15.1Introduction 15.2Setup and.
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Frames Outline 1 Introduction 2 frameset Element 3 Nested frameset s 4 Web Resources.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 16 - Dynamic HTML: Data Binding with Tabular Data Control Outline 16.1 Introduction 16.2 Simple.
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
 2002 Prentice Hall, Inc. All rights reserved. 1 Chapter 12 – XSL: Extensible Stylesheet Language Transformations (XSLT) Outline 12.1Introduction 12.2Setup.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 13 - Dynamic HTML: Object Model and Collections Outline 13.1 Introduction 13.2 Object Referencing.
1 Overview of XSL. 2 Outline We will use Roger Costello’s tutorial The purpose of this presentation is  To give a quick overview of XSL  To describe.
XML Basics A brief introduction to XML in general 1XML Basics.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 26 - Case Study: Active Server Pages and XML Outline 26.1 Introduction 26.2 Setup and Message.
Web Application Programming Presented by: Mehwish Shafiq.
Cascading Style Sheets CSS. Source W3Schools
 2008 Pearson Education, Inc. All rights reserved Document Object Model (DOM): Objects and Collections.
Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
XSLT: How Do We Use It? Nancy Hallberg Nikki Massaro Kauffman.
Beginning JavaScript 4 th Edition. Chapter 1 Introduction to JavaScript and the Web.
10 Copyright © 2004, Oracle. All rights reserved. Building ADF View Components.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
1 Introducing Web Developer Tools Rapid application development tools ASP.NET-compatible web editors –Visual Studio.NET Professional Edition –Visual Studio.
ASP.NET Forms.
Chapter 23 – ASP.NET Outline 23.1 Introduction NET Overview
Chapter 7 Representing Web Data: XML
Presentation transcript:

 2004 Prentice Hall, Inc. All rights reserved. Chapter 24 – Case Study: ASP.NET and XML Outline 24.1 Introduction 24.2 Setup and Message Forum Documents 24.3 Forum Navigation 24.4 Adding Forums 24.5 Forum XML Documents 24.6 Posting Messages 24.7 CSS Document for Forum Pages 24.8 Web Resources

 2004 Prentice Hall, Inc. All rights reserved. Objectives In this lesson, you will learn: –To create a Web-based message forum using ASP.NET Pages. –To use XML with ASP.NET. –To be able to add new forums. –To be able to post messages to the message forum. –To use.NET Framework classes to manipulate XML documents. –To use XSLT to transform XML documents.

 2004 Prentice Hall, Inc. All rights reserved Introduction Message forums –“virtual” bulletin boards –messages.yahoo.com –web.eesite.com/forums –groups.google.com

 2004 Prentice Hall, Inc. All rights reserved Setup and Message Forum Documents Software –Microsoft Internet Information Services (IIS) 5 or 6 –Internet Explorer 6 (for ML and XSLT processing) –MSXML 3.0 or higher (included with IE 6) Main page, default.aspx –Displays list of available message forums

 2004 Prentice Hall, Inc. All rights reserved Setup and Message Forum Documents

 2004 Prentice Hall, Inc. All rights reserved Setup and Message Forum Documents forums.xml addForum.aspx formatting.xsl addPost.aspx default.aspx forumASP.xml forums.xsl Fig. 24.2Interactions between message forum documents.

 2004 Prentice Hall, Inc. All rights reserved Forum Navigation Root element forums Attribute filename –Stores name of XML document contains forum’s messages and markup Attribute DocumentSource –Specifies a path to an XML file to display Attribute TransformSource –Specifies an XSLT document

 2004 Prentice Hall, Inc. All rights reserved. Outline forums.xml (1 of 1)

 2004 Prentice Hall, Inc. All rights reserved. Outline default.aspx (1 of 2)

 2004 Prentice Hall, Inc. All rights reserved. Outline default.aspx (2 of 2)

 2004 Prentice Hall, Inc. All rights reserved.

Outline forums.xsl (1 of 1)

 2004 Prentice Hall, Inc. All rights reserved Adding Forums XmlTextWriter class –Methods and properties for writing XML to a file –WriteStartDocument Writes the start of document –WriteProcessingInstruction Writes a processing instruction to the XML file –WriteStartElement Write first element and names in forum –WriteAttributeString Add attribute filename, and assigns it to the text in fileBox –WriteElementString Creates opening and closing tags of element name and inserts value of nameBox –WriteEndElement Closes most recently declared unclosed element by outputting /> –WriteFullEndElement Write full closing tag to close root element

 2004 Prentice Hall, Inc. All rights reserved. Outline forumASP.xml (1 of 1)

 2004 Prentice Hall, Inc. All rights reserved. Outline addForum.aspx (1 of 7)

 2004 Prentice Hall, Inc. All rights reserved. Outline addForum.aspx (2 of 7)

 2004 Prentice Hall, Inc. All rights reserved. Outline addForum.aspx (3 of 7)

 2004 Prentice Hall, Inc. All rights reserved. Outline addForum.aspx (4 of 7)

 2004 Prentice Hall, Inc. All rights reserved. Outline addForum.aspx (5 of 7)

 2004 Prentice Hall, Inc. All rights reserved. Outline addForum.aspx (6 of 7)

 2004 Prentice Hall, Inc. All rights reserved. Outline addForum.aspx (7 of 7)

 2004 Prentice Hall, Inc. All rights reserved Adding Forums Fig. 24.8New forum on the message board.

 2004 Prentice Hall, Inc. All rights reserved Adding Forums Fig. 24.9Initial content of the newly added forum.

 2004 Prentice Hall, Inc. All rights reserved Forum XML Documents XSLT document that transforms each forum XML document to XHTML

 2004 Prentice Hall, Inc. All rights reserved. Outline Formatting.xsl (1 of 4)

 2004 Prentice Hall, Inc. All rights reserved. Outline Formatting.xsl (2 of 4)

 2004 Prentice Hall, Inc. All rights reserved. Outline Formatting.xsl (3 of 4)

 2004 Prentice Hall, Inc. All rights reserved. Outline Formatting.xsl (4 of 4)

 2004 Prentice Hall, Inc. All rights reserved. Outline forumASP- output.html (1 of 4)

 2004 Prentice Hall, Inc. All rights reserved. Outline forumASP- output.html (2 of 4)

 2004 Prentice Hall, Inc. All rights reserved. Outline forumASP- output.html (3 of 4)

 2004 Prentice Hall, Inc. All rights reserved. Outline forumASP- output.html (4 of 4)

 2004 Prentice Hall, Inc. All rights reserved Posting Messages addPost.aspx –Posts message to a forum Request.QueryString –Access to variables passed through the query string

 2004 Prentice Hall, Inc. All rights reserved. Outline addPost.aspx (1 of 5)

 2004 Prentice Hall, Inc. All rights reserved. Outline addPost.aspx (2 of 5)

 2004 Prentice Hall, Inc. All rights reserved. Outline addPost.aspx (3 of 5)

 2004 Prentice Hall, Inc. All rights reserved. Outline addPost.aspx (4 of 5)

 2004 Prentice Hall, Inc. All rights reserved. Outline addPost.aspx (5 of 5)

 2004 Prentice Hall, Inc. All rights reserved Posting Messages Fig Contents of the Internet and World Wide Web: 3rd Edition forum.

 2004 Prentice Hall, Inc. All rights reserved CSS Document for Forum Pages CSS document that formats all documents in the forum application

 2004 Prentice Hall, Inc. All rights reserved. Outline style.css (1 of 5)

 2004 Prentice Hall, Inc. All rights reserved. Outline style.css (2 of 5)

 2004 Prentice Hall, Inc. All rights reserved. Outline style.css (3 of 5)

 2004 Prentice Hall, Inc. All rights reserved. Outline style.css (4 of 5)

 2004 Prentice Hall, Inc. All rights reserved. Outline style.css (5 of 5)

 2004 Prentice Hall, Inc. All rights reserved Web Resources aspnet.4guysfromrolla.com/ msdn.microsoft.com/library/default.asp