Display pdf file on browser

Hi,

I'm a beginner in asp, I'm creating manually a table-row to be displayed on
the browser and the row number is a hiperlink to pdf-files. As the row grows
I'm thinking of rewrite my asp file to connect with ms access table. On the
browser the table displayed with an input button on each row instead of
hyperlink, the following is the part of my asp file
<%
dim conn, rs, x, filename
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.MapPath("\DataFTI\DataFTI.mdb"))
set rs=Server.CreateObject("ADODB.Recordset")
rs.Open "SELECT FTI_ID, FTI_DES FROM tblDataFTI",conn
%>
<h1 align=center>List Data Field Technical Information</h1>
<p>Click on a button for detail information.</p>
<table border="1" width=100% align=center cellpadding="1" cellspacing="1">
<!-- table header -->
<tr bgcolor="#b0c4de">
<th >FTI</th>
<th>FTI Description</th>
</tr>
<%do until rs.EOF%>
<tr bgcolor="#f0f0f0">
<td align=center width=100>
<form method="post" action="mydata_fti.asp">
<%
for each x in rs.Fields
if x.name="FTI_ID" then
%>
<input type="submit" name="ftino" value="<%=x.value%>">
</td>
<%else%>
<td align=left><%Response.Write(x.value)%></td>
<%
end if
next
%>
</form>
<%rs.MoveNext%>
</tr>
<%
loop
rs.Close
set rs=nothing
conn.Close
set conn=nothing
%>
</table>
<%

filename="pdf\" & Request.Form("ftino") & ".pdf"

%>

so far, on button click the filename variable is the physical path+name of
the pdf-file, how can I refer to the file to be display on the browser? in
other word how can I display the pdf file on button click?

Thank you and appreciate for all comment and help in advance
Ricky Lie
RickyLie [ Fr, 31 August 2007 10:40 ] [ ID #1809805 ]
Webserver » microsoft.public.inetserver.asp.db » Display pdf file on browser

Vorheriges Thema: Retrieving autonumber
Nächstes Thema: Data access IIS7/Vista/Acess2000