Running ASP Scripts, Including Using Access


  1. Scripts must be in the folder Inetpub/wwwroot or a subfolder of this folder. Assume that you make a subfolder called aspstuff.

  2. Save ASP scripts in Inetpub/wwwroot/aspstuff. Copy into this folder the miniquizask.asp and miniquizcheck.asp files described in the text.

  3. Invoke Internet Explorer and enter in the address: http://localhost/aspstuff/ miniquizask.asp This will invoke the miniquizask.asp script.

  4. You can name your computer (and might have already done so). To see the name or to change it, click the right button on the My Computer icon. Click on Properties. Select the Computer Name tab. You should see a name. If you want to change the name, click on Change and then enter a new name. Once you have done this, you can use that name in place of localhost. For example: http://jmeyer/aspstuff/miniquizask.asp

  5. To invoke a script using a database, you can use the DSN or DSN-less method. This information is generally in a script that is included in each script accessing the database. Let us assume that you have such a script. The critical thing you need to do is set the permissions for reading and writing to the file. The default permission will probably be read-only.

  6. Click on the Start button and then select Control Panel. Change to Classic View. Click on Folder Options. Click on View. Scroll down to the end and clear (click to remove the x) Simple file sharing (recommended). Note: this is an extra step required for Windows XP.

  7. To set permissions, right-click on the Start button and click Explore on the pop-up menu. Right-click on the folder containing the database. Click on the Security tab. Click on Advanced and then clear (click to remove the x) Inherit from parents the permissions…. Click OK. Click Add. The Select Users or Groups window will appear. Click on Advanced and then Find Now. Scroll down the list to locate IUSR_computername. For our computer, this will be IUSR_JMEYER. Select this entry. Click Add, and then click OK. The Security Tab panel reappears with the new entry. Select this entry and add Read and Write permissions.

  8. Repeat this step, except for the clearing of the Inherit from the parents…, for the database.




Creating Database Web Applications with PHP and ASP
Creating Database Web Applications with PHP and ASP (Charles River Media Internet & Web Design)
ISBN: 1584502649
EAN: 2147483647
Year: 2005
Pages: 125
Authors: Jeanine Meyer

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