PDA

View Full Version : Open files with drop downs


ekbranson
06-01-2003, 11:38 PM
Hi, I'm curious if I can do this. I would like a drop down box to open a txt, pdf, doc, rtf etc in a window when an item is selected. I have the path and file name stored in a database, but I can't seem to get it to work. Currently when an item is selected the item value is pased via a post method to an asp script which then access my database and gets the required path and file name. The problem is that I tried using

Server.Transfer ( path & file_name)


This only brings up a garbled mess. Does any one have any solutions to this? Also, is there a way I can store these files in a database?

ekbranson
06-02-2003, 04:43 AM
Ok, this one was not code. It had to do with the server setup. All I needed to do was configure the server to accept those extension types. Then I used a

Response.Redirct ( path and file_name)

no problems now. Thanks