Solved

Redirect Page from within Iframe

Posted on 2006-06-16
6
227 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maxJsonLength exceeded error on ajax Post to ASP.NET MVC Controller Action method 5 120
Response.Redirect Open new Form/tab/page? 5 30
Hidden Field Value 10 60
Syntax error 9 45
AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

914 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now