|
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.
|