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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP - displaying a doc or pdf file from a database

Status
Not open for further replies.

lin45

Technical User
Dec 19, 2002
14
GB
I am trying to read the path of a file (which will be either a pdf file or a doc file)from a database in order that the contents of the file can be displayed in a new window showing .

Presently on the first page I show brief details and on the OnClick this takes me to a second page, taking the full information to be displayed from the database. However this is making the database extremely big and I would like to have the field in the database contain the path to the file it relates to somehow be able to display this on the next page on the onclick event.

I presently use the undernoted javascript function to call the information from the database, but wonder if it is possible to replace this with the path to the file and if so what would be the code.

thanks in advance

Linda
function InfoPage(Select)

{
document.menu.Selection.value=Select;
document.menu.target = "_blank";
menu.submit();
}
and the onclick reading
onClick=&quot;InfoPage('<%=safejsqtStr(strEntryID(i))%>')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top