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,
ASP.NET

Avatar of undefined
Last Comment
nauman_ahmed

8/22/2022 - Mon
nauman_ahmed

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.
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
nauman_ahmed

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy