Running the Solution

[Previous] [Next]

The Timesheet solution is a mixture of HTML and ASP. To run this solution, you must open the Default.htm page using an http:// URL, meaning that you cannot simply double-click the files on the companion CD. The easiest way to set up this solution is to follow these steps:

  1. If you are using a Windows NT Server machine with Microsoft Internet Information Server, use the IIS manager to add a virtual directory to your root web. Copy the Chap08 directory on the companion CD to your machine's hard drive, and specify that directory as the source for a virtual directory. Make sure to enable scripting support.
  2. If you are running Personal Web Server (say on Windows 98 or Windows NT Workstation), use the Personal Web Manager to add a virtual directory as described in Step 1.
  3. Type the URL for the directory into your browser (for example, http://MyServer/Chap08). The Default.asp page should load unless you have configured your web site to use some other default filename. If you have, simply add /Default.asp to the end of the URL.

For tips on how to create virtual directories for ASP applications under Personal Web Server, see the sidebar in the section "Creating Server-Side Charts on Demand" of Chapter 6. Note that this solution does not use a Global.asa file and therefore does not need to be set up as an application.

The ASP scripts in this solution will use the LOGON_USER server variable for the current user name when saving reports. By default, IIS leaves the "Allow Anonymous Access" authentication method on and when it is enabled, LOGON_USER returns a blank string. If you want to enable the solution to save reports based on the actual user name, disable anonymous access by editing the virtual directory's security settings.



Programming Microsoft Office 2000 Web Components
Programming Microsoft Office 2000 Web Components (Microsoft Progamming Series)
ISBN: 073560794X
EAN: 2147483647
Year: 1999
Pages: 111
Authors: Dave Stearns

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net