469,921 Members | 2,176 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,921 developers. It's quick & easy.

Can a asp page post data to another asp page inside frameset?

I know this is probably easy but here is the details. I have an asp
page that is not inside a frameset. I want to post data to another asp
page that is inside a frameset. So firstpage.asp has
action="response.htm" target="results".

response.htm...
<HTML>
<FRAMESET ROWS="50%,50%">
<FRAME SRC="header.asp" NAME="fTop">
<FRAME SRC="another.asp" NAME="results">
</FRAMESET>
</HTML>

I cannot put firstpage.asp into the frameset because it takes data
from a outside page and I can only specify the return url from that
outside page to firstpage.asp. This needs to stay within one window
(ie no opening up new windows).

TIA

Luu
Jul 19 '05 #1
2 4857
On 7 Oct 2003 14:40:39 -0700, lu**************@hotmail.com (luu duong)
wrote:
I know this is probably easy but here is the details. I have an asp
page that is not inside a frameset. I want to post data to another asp
page that is inside a frameset. So firstpage.asp has
action="response.htm" target="results".

response.htm...
<HTML>
<FRAMESET ROWS="50%,50%">
<FRAME SRC="header.asp" NAME="fTop">
<FRAME SRC="another.asp" NAME="results">
</FRAMESET>
</HTML>

I cannot put firstpage.asp into the frameset because it takes data
from a outside page and I can only specify the return url from that
outside page to firstpage.asp. This needs to stay within one window
(ie no opening up new windows).


While I disagree with the use of frames...

A frameset file is no different than any other HTML file except for
what is inside. Therefore, you can use an ASP file there too. Change
respose.htm to respose.asp and pass the querystring value passed to it
to the another.asp file inside it's "results" frame.

From firstpage.asp, your post will be...
action="response.asp"

I will assume here that you have a form text box named "MyID".

In response.asp...
<HTML>
<FRAMESET ROWS="50%,50%">
<FRAME SRC="header.asp" NAME="fTop">
<FRAME SRC="another.asp?MYID=<%=request.form("MyID")%>"
NAME="results">
</FRAMESET>
</HTML>

Jul 19 '05 #2
Yes, your method would work, but what if I wanted to post the
variables to another.asp because it is a little more secure? Is this
possible with the current setup?

Thanks

Dan Brussee <db******@NOSPAMnc.rr.com> wrote in message news:<2u********************************@4ax.com>. ..
On 7 Oct 2003 14:40:39 -0700, lu**************@hotmail.com (luu duong)
wrote:
I know this is probably easy but here is the details. I have an asp
page that is not inside a frameset. I want to post data to another asp
page that is inside a frameset. So firstpage.asp has
action="response.htm" target="results".

response.htm...
<HTML>
<FRAMESET ROWS="50%,50%">
<FRAME SRC="header.asp" NAME="fTop">
<FRAME SRC="another.asp" NAME="results">
</FRAMESET>
</HTML>

I cannot put firstpage.asp into the frameset because it takes data
from a outside page and I can only specify the return url from that
outside page to firstpage.asp. This needs to stay within one window
(ie no opening up new windows).


While I disagree with the use of frames...

A frameset file is no different than any other HTML file except for
what is inside. Therefore, you can use an ASP file there too. Change
respose.htm to respose.asp and pass the querystring value passed to it
to the another.asp file inside it's "results" frame.

From firstpage.asp, your post will be...
action="response.asp"

I will assume here that you have a form text box named "MyID".

In response.asp...
<HTML>
<FRAMESET ROWS="50%,50%">
<FRAME SRC="header.asp" NAME="fTop">
<FRAME SRC="another.asp?MYID=<%=request.form("MyID")%>"
NAME="results">
</FRAMESET>
</HTML>

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by John Beschler | last post: by
8 posts views Thread by Zvonko | last post: by
2 posts views Thread by John Lau | last post: by
7 posts views Thread by sunil philip | last post: by
1 post views Thread by success_ny | last post: by
3 posts views Thread by Aaron | last post: by
25 posts views Thread by Geoff Cox | last post: by
reply views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.