Frames and Downloading files

K

karen

I have a frames site set up with the contents on the left hand side. When a link is clicked here the details are shown in the main frame. When a download link in the main frame is clicked, the file is downloaded to excel - this all works fine - but when i then click on an entry in the contents, this page is not displayed. I believe the link is working and the necessary page is being generated - just not displayed.

Can anyone help????
 
S

Steve Easton

Click on an entry in the contents of what,
the excel file??

--
95isalive
This site is best viewed..................
...............................with a computer

karen said:
I have a frames site set up with the contents on the left hand side. When
a link is clicked here the details are shown in the main frame. When a
download link in the main frame is clicked, the file is downloaded to
excel - this all works fine - but when i then click on an entry in the
contents, this page is not displayed. I believe the link is working and the
necessary page is being generated - just not displayed.
 
K

karen

Sorry, I haven't explained myself very well.

I have a frames page with the frame on the left hand side of page listing hyperlinks to various reports listing staff names and details. When one of these links is clicked on, the appropriate report is generated using data from an Access database and displayed as an asp page on the right hand side of the frames page. On this asp page, above the list of names, there is a link that allows the user to download the names to an Excel file. This link runs an asp page, listed below:

<%@ Language=VBScript %
<% Response.Buffer = true


'open recordset to get staff names
set rs= server.CreateObject ("adodb.recordset")
rssql="SELECT * tblStaff WHERE tblbranch.branchid= " & request.querystring("param")
rscon=Application("staffconnect_connectionstring")
rs.Open rssql, rscon

'code to download
response.clear
Response.ContentType = "application/octet-stream"
Response.AddHeader "content-disposition", "attachment;filename=Staff_List.csv"


'print staff details

while not rs.eof
Response.Write Rs.Fields(0)
response.write " "
response.write rs.fields(1)
response.write (",")
response.write (chr(13)&chr(10))

rs.movenext
wend

rs.close
set rs=nothing

response.end
%>

When this has runs the excel file has been created and is ok, but now when i select a link from the left hand frame, the new report does not appear in the right hand frame. The links do work provided i don't download, the downloading seems to mess things up. I think the reports are being generated - there is network activity and there is a delay before the "Done" message appears in the status bar - but the report doesn't appear in the right hand frame! I hope this explains things a bit more - sorry if I haven't got all the technical terms correct!!

karen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top