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(HTMLI nfo) 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 %>&navlink s=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,
I could instead just concatenate it to the existing webpage, but when i response.binarywrite(HTMLI
<frameset rows="15%,*" border="0" framespacing="0" frameborder="0">
<frame name="nav" scrolling="no" noresize src="lss.asp?doc=<%=doc_id
<frame name="content" noresize src=<%Response.BinaryWrite
</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,
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 %>&navlink s=T" marginwidth="0" marginheight="0">
<frame name="content" noresize src="newWin.asp?file=<%=Fi leInfo%>" 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?
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
<frame name="content" noresize src="newWin.asp?file=<%=Fi
</frameset>
<%
Is there a way I can convert the CLOB type to a string in the asp portion of the page?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<a href="GetFile.aspx">Downlo
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
--Nauman.