Solved

Redirect Page from within Iframe

Posted on 2006-06-16
6
237 Views
Last Modified: 2012-06-27
Hey there, I have a page with an iframe inside.  Within the IFrame page there is a button which I want to do a "Response.Redirect" in it's OnClick method, only problem is I want it to redirect the entire page instead of just the page within the iframe.  Is this possible? Thanks.
0
Comment
Question by:belikemike121
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 7

Expert Comment

by:pradeepsudharsan
ID: 16925229
document.frames.if1.location.href="webform1.aspx";
0
 
LVL 7

Expert Comment

by:pradeepsudharsan
ID: 16925411
Hi,
sorry the previous one is wrong.
add the following script

<script language="javascript">
            function test()
            {
              window.open("MainForm.aspx");
            }
            
            </script>

<INPUT id="Button1" style="Z-INDEX: 103; LEFT: 312px; POSITION: absolute; TOP: 152px" type="button"
                        value="Button" name="Button1" onclick="test();">
This will display the full web form.

Regards
Pradeep
0
 
LVL 7

Accepted Solution

by:
pradeepsudharsan earned 250 total points
ID: 16925507
Hi,
prevoius one opens the new window.
window.open('MainForm.aspx','_parent'); -opens the form in the current window

Regards
Pradeep
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:belikemike121
ID: 16925601
the problem is I'm running a .NET script so I am using a .NET ImageButton control with a _Click method to capture its event.  I am running certain .NET code then after that executes i need it to redirect...
0
 

Author Comment

by:belikemike121
ID: 16925618
nvm, answered my own question, just doing a "Response.Write('<Script>')",....and so on...thanx
0
 

Author Comment

by:belikemike121
ID: 16925652
actually, problem with the script....it doesnt refresh, it will redirect but the page it redirects to is dynamic so it just displays whatever is in cache...doesnt actually display the right content, please help.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question