Link to home
Start Free TrialLog in
Avatar of bertino12
bertino12

asked on

Response.binarywrite to a specific frame

I have a variable that contains HTML from a database blob field and I want to response.binarywrite this to a specific frame on my webpage. Is that possible?

I could instead just concatenate it to the existing webpage, but when i response.binarywrite(HTMLInfo) it overwrites everything I have currently written to the webpage. That is why I went with two frames so I could preserve the top stuff. I guess either method would work.

<frameset rows="15%,*" border="0" framespacing="0" frameborder="0">
  <frame name="nav" scrolling="no" noresize src="lss.asp?doc=<%=doc_id%>&navlinks=T" marginwidth="0" marginheight="0">
  <frame name="content" noresize src=<%Response.BinaryWrite(HTMLInfo)%> marginwidth="0" marginheight="0">
</frameset>

This is what I have and it doesnt work at all. Just doing BinaryWrite(HTMLInfo) to the existing page alone overwrites the other stuff on the page.
Thanks,
Avatar of nauman_ahmed
nauman_ahmed
Flag of United States of America image

I think you are trying to download a file. The way it should be done is the link should point out to a page that output content using Response.BinaryWrite like

<a href="GetFile.aspx">Download</a>

This link can then be in either of the frame. The source attrib. of frame is not supposed to work in the way src=<%Response.BinaryWrite(HTMLInfo)%>.

--Nauman.
Avatar of bertino12
bertino12

ASKER

Well I tried doing it thisway but it didnt work :(


dim FileInfo

sql = "select * from documents where published = 1"
set rst=conn.execute(sql)
if not rst.eof then
        FileInfo = rst("html_doc")

%>
<frameset rows="15%,*" border="0" framespacing="0" frameborder="0">
  <frame name="nav" scrolling="no" noresize src="lss.asp?doc=<%=doc_id%>&navlinks=T" marginwidth="0" marginheight="0">
  <frame name="content" noresize src="newWin.asp?file=<%=FileInfo%>" marginwidth="0" marginheight="0">
</frameset>
<%

Is there a way I can convert the CLOB type to a string in the asp portion of the page?
ASKER CERTIFIED SOLUTION
Avatar of nauman_ahmed
nauman_ahmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial