O'Reilly logo

Active Server Pages 3.0 from Scratch by Nicholas Chase

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Typical Content

Now that you've got the interface settled, it's time to add some content. On the CD, in the Chapter 3 folder, find a file called news.txt. This folder contains the news to add to this page, but it needs a bit of massaging before it's ready.

Open the file in your text editor. It looks fine there. Copy and paste it into your page, as shown in Listing 3.5.

Code Listing 3.5. news.asp: Adding news items
1: <%@ LANGUAGE="VBSCRIPT" %>
2: <HTML>
3: <HEAD>
4: <TITLE>Primary Outpost</TITLE>
5: </HEAD>
6: <BODY bgcolor="32C800">
7: <A href="http://localhost/index.asp">
8: <IMG SRC="images/logo.gif" ALT="Primary Outpost Logo" HEIGHT="67" WIDTH="496"
 ALIGN="left" border=0></A> 9: <A href="news.asp"> 10:<IMG SRC="images/news.gif" BORDER=0 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required