FP98: How to Create Active Server Pages in FrontPage 98

ID: Q174015


The information in this article applies to:


SUMMARY

This article describes how to create Active Server Pages (ASP) in Microsoft FrontPage 98 if you are using the Microsoft Personal Web Server (MSPWS) as your Web server.

NOTE: The ASP configuration on Microsoft Internet Information Server-based servers may be different. This procedure will not work if you are using a disk-based Web. You must install Asp.exe if you want ASP to work on a supported Web server. For more information about installing Asp.exe, please see the following article in the Microsoft Knowledge Base:

Q179264 FP98: Previewing in Browser Prompts to Save ASP Files to Disk


MORE INFORMATION

WARNING: ANY USE OF THE VBSCRIPT PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this VBScript "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

In FrontPage 98, you can create an Active Server Page using Visual Basic Scripting Edition (VBScript) code. To do this, follow these steps:

  1. In FrontPage Explorer, open or create a Web and then follow these steps:

    1. On the View menu, click Folders.


    2. On the File menu, point to New, and then click Folder.


    3. Name the folder ASPSample.


    4. Right-click the ASPSample folder and then click Properties on the menu that appears.


    5. Click to select the "Allow scripts or programs to be run" check box.
      Click OK.


    6. On the Tools menu, click Show FrontPage Editor.




  2. In FrontPage Editor, follow these steps:

    1. On the File menu click New. Select Normal Page and click OK. Or, open an existing page.


    2. On the Insert menu, point to Advanced, and then click Script.


    3. In the Script dialog box, do the following:

      1. Click VBScript.


      2. Click to select the "Run Script on Server" check box.


      3. In the Script box, type the following code:
        
                     For i = 3 to 10 %&>
                     &<font size="&<% = i %&>"&>
                        Hello World!&<br&>
                     &<% Next
                    


      4. Click OK.




    4. On the File menu, click Save As. From the Look In list, select the ASPSample folder. In the File Name box, type World.asp. Click OK.


    5. On the File menu, click Preview In Browser.





REFERENCES

For more information about Active Server Pages, please see the following articles in the Microsoft Knowledge Base:

Q174008 FP98: What are Active Server Pages?

Q174185 FP98: ASP Code Displayed in Browser
For more information about Visual Basic scripts, please see the following Microsoft World Wide Web site:
http://www.microsoft.com/scripting/vbscript

Additional query words: 98 asp iis


Keywords          : kbdta fphtml fpiis 
Version           : WINDOWS:
Platform          : WINDOWS 
Issue type        : kbhowto 

Last Reviewed: July 23, 1999