Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : ASP : ADO/ODBC : unable to display different kind of files Signup · Login
Author Thread
unable to display different kind of files
Posted in tutorial: Displaying Images from an Access Database using plain ASP
·  suhas_e
User
Joined: 11 Dec 2002
Total Posts: 1
unable to display different kind of files
Posted: 11 Dec 2002
Hi Faisal

grt work on the tutorial. I as a complete novice could implement most of it. I am a student who has web site developer job. I did the entire thing with SQL Server 2000 and everything except the file.asp file is working. Basically the page keeps opening the same PDF file no matter which file i click on (in the show.asp page). All the IDs goto the same PDF file. I tried uploading gifs, jpegs, even txt files but it still keeps opening the same pdf file that i had loaded earlier. Pls advise as to what I shld look at/chk out.

Suhas DBA, Web Design Novice
·  Faisal Khan
AdminAdminAdminAdmin
Joined: 24 Sep 2002
Total Posts: 547
Re: unable to display different kind of files
Posted: 13 Dec 2002
Suhas,

I don't think you'll have to change anything in the code.

The reason you are getting the same ID for all the files on 'show.asp' is that probably the table structure you created for "Files" table lacks 'Primary Key' and 'Identity' constraints on the "ID" field of "Files" table.

So in the Enterprise Manager, set the "ID" field of "Files" table to "Primary Key" and also set it to "Identity" so that every new record inserted increments the ID field value. This way after you upload files, each file will be given a new ID unique to it.

I hope you'd have got the idea. If not please ask and I'll explain.

Faisal Khan.
Stardeveloper.com

Users Who Have Visited This Thread In Last 24 Hours
4 Visitors

Login
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2009 Stardeveloper.com, All Rights Reserved.