Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

View Asp pages from CD from 1

Status
Not open for further replies.

allenEd

Technical User
Nov 14, 2002
129
GB
Sorry if this is a dumb question.

I have been asked by my boss to put our web site on a cd rom for our sales guys.

The site is all asp, with a access database for products.

Any ideas on how I do this, running it from a directory doesn't work.. also when I try running from IIs 5 which I loaded on my W2kPro PC I get

Error Type:
Microsoft JET Database Engine (0x80004005)
'C:\Inetpub\private\data\database.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
/Default.asp, line 79


Thanks in advance

Allen
 
make the db access paths virtual based off the location of the pages, also you will not be able to run the site off the cd unless it's a CDRW, i would highly recommend making a web-trial installer that copies the db and necessary items to the clients computer for browsing etc.
 
Thanks DreXor,

Can you recommend a web-trial installer? I've never used one (....or know what one is)

thanks again.

Allen
 
Hi Allen,

If you want ASP to run on the laptops (not connected to the net), you will need IIS (or Personal Web Server on Win98) on the laptops. ASP pages won't execute by double-clicking in a directory.

Also, an access database needs to be in a directory that can be written to (you know the lock file, *.ldb that comes up while the DB is open?)...

My recomendation would be:

1) Install IIS (or PWS) on each laptop.
2) Copy the site files to the laptop under c:\inetpub\ (or wherever inetpub is)
3) The files will probably be read-only having been taken from the CD. Select them all and open Properties. Clear the "Read Only" checkbox. Apply.
3) Make sure the database path is correct in the *.asp scripts.
4) Open and your site should be there.
5) Place a shortcut on the desktop for the Sales guys!!!

As regards the shortcut, it must point to NOT c:\inetpub\ (or whatever the homepage file is).

The easy way to do this is to bring the site up in your browser and drag the icon from the address bar to the desktop.

Hope that helps....


Dave Mc Donald
 
Hi Dave,

Thanks for your help...

How do I

3) Make sure the database path is correct in the *.asp scripts

sorry if this is dumb..

cheers
Allen
 
use server.mappath.

alwasy store the database in the same folder as the *.asp file. and do this:
pth=server.mappath("DBNAME")

Known is handfull, Unknown is worldfull
 
Well i just made an application that runns on CD as you say but uses some modified ASP scripts into HTML script and XML as database and it's not hard to implement. actually it's a lot easyer to make HTML+XML database to work as ASP's+Database.

THis aplication works on any location on HDD or CDROM

________
George, M
 
here is an link to a working example
unzip it and run index.htm
Also this can be as same as an ASP, can use cookies to store values between pages also can send values using query strings and lots more but for a presentation CD this is verry handfull.

________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top