Solved

Redirect Page from within Iframe

Posted on 2006-06-16
6
230 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
  • 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

770 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