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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem in Redirecting Asp page to a frame

Status
Not open for further replies.

tondarb

Programmer
Oct 8, 2003
37
US
Hi all,
In a page I am having 2 frames and the second frame name is mainframe

<frame src=&quot;test.asp&quot; name=&quot;mainframe&quot;>


the test.asp fits in the mainframe and the code is
<body>
<form action=&quot;testresult.asp&quot; method=post id=form1 get=&quot;_parent&quot;>
<table>
---code---
</table>
</body>

Up to this point it is ok
In the testresult.asp I have written a query if it is true then it will opens another page

response.redirect(&quot;test2.asp&quot;)

Now I want this page that is Test2.asp to fit in the second frame &quot;mainframe&quot;. I am unable to handle this . Can anyone is there to help me?
 
remove get=&quot;_parent&quot; in ur form tag (i guess it is target)...

Known is handfull, Unknown is worldfull
 
sorry I have written the wrong code--
it is

<body>
<form action=&quot;testresult.asp&quot; method=post id=form1 target=&quot;_parent&quot;>
<table>
---code---
</table>
</body>

I want the test2.asp to come into the frame
thanks in advance

 
can anybody is there to help me. it is very urgent
 
As vbkris said, change target=&quot;_parent&quot; to target=&quot;the name of the frame you with to put it in&quot;

In theory this should work. I know it works for h refs but I'm not sure about forms. has a good frames primer.
 
remove the target attribute...
<form action=&quot;testresult.asp&quot; method=post id=form1 >

Known is handfull, Unknown is worldfull
 
oh..Its working.. I removed that target attribute
Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top