Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP file to generate a frameset HTML file?

Status
Not open for further replies.

Samoyed

Programmer
Jul 13, 2001
17
CA
Hi,

I'd like to know if this is possible. Can an ASP page return a result into a frameset page? I currently have the code below. It connects to a database and upon verification, the name of a file is returned. If it is a word document that is returned, i want it to appear in the far left frame (so in the case of the frameset file below, that would be in the NavigationFrame.htm). Below is the code for my asp file.

<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<%
set x = server.CreateObject(&quot;Project1.Class1&quot;)
Message = x.Validate(Request.Form(&quot;Name&quot;),Request.Form(&quot;password&quot;))
WholeMessage = Message
DisplayMessage = right(Message,3)
if DisplayMessage = &quot;doc&quot; then%>
<%=DisplayMessage%>
<%
else%>
<%=WholeMessage%><%
end if%>
</BODY>

Below is my current frameset file:

<html>

<frameset cols=&quot;25%,50%,25%&quot;>

<frame src=&quot;NavigationFrame.htm&quot;>
<frame src=&quot;tryhtml_frame_b.htm&quot; NAME=&quot;MiddleFrame&quot;>
<frame src=&quot;tryhtml_frame_c.htm&quot; NAME=&quot;RightFrame&quot;>

</frameset>

</html>

Is this possible?? Of would there be a better way?
 
if you want the word document to appear in the navigationframe then make the src for that frame the path for the word document, Or am I going down the wrong path?
 
Hi sjravee,

Not to worry, I figured it out, basically instead of loading my asp page first, I load my frameset html page with the asp page embedded in the left navigation frame. What I return to the left navigation frame is a hyperlink which when clicked opens up the word/pdf document in the right frame. Thanx n e how.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top