I have a Iframe in a page and i want to reload the main page (page where is the iframe). i try using: window.location.reload(); window.location.reload(true); parent.location.reload(); top.window.location.reload(true); It is possible to refresh all the page
from in the IFRAME!? (URGENT HELP) Thanks
NO LUCK. There isn't any solution for this case!? I try to find in the net, but i can't find anything about IFRAMEs and comunication with the "parent" window! Help...
NO Luxk again!! Let me explain better what is my situation: 1) I have a aspx file that loads a ascx file and witch contains a IFRAME (p.e. pageFrame.ascx). 2) The IFRAME source is a aspx file that loads another ascx file (p.e. pagePane.ascx). 3) Is in the pagePAne.ascx
file that i try to reload the explorer. But i can't load. For example, the parent.location = "xpto.aspx"; give me a error in the IFRAME: "Bad Request(Invalid URL)"!!! In the pagePane.ascx.vb i have:
Is this the best way!? Conclusion: With the parent.location,
the errors are show in the IFRAME and not in the principal page! Therefore... Helppppppp.... :)
Oops, forgot to say that you have to provide a URL as the parameter for Response.Redirect(), not HTML!! Place the script in a page of some sort (e.g. .html, .asp, .aspx) and then redirect to that.
The best way for that is to "RegisterStartupScript": Dim temp As String temp = "<script language='Javascript'>" temp += " alert();" temp += "</script>" RegisterStartupScript("Test", temp) I will try this if works in a ascx file!
You are best using the
IsStartupScriptRegistered method before RegisterStartupScript, to ensure that only a single instance of the script is added to the Page (in case there is more than one instance of the Control).
"RegisterStartupScript is not declared"!!! If I change the Inherits of the class, all the class don't work, if i import System.web.ui.page, the "RegisterStartupScript" is in the same (not declared)! When a person is new at this, is tuff!!
renateves
Member
585 Points
117 Posts
How to refresh parent window with in iframe!
Jan 16, 2004 04:27 PM|LINK
Moon
Participant
830 Points
166 Posts
Re: How to refresh parent window with in iframe!
Jan 16, 2004 06:53 PM|LINK
renateves
Member
585 Points
117 Posts
Re: How to refresh parent window with in iframe!
Jan 18, 2004 11:03 PM|LINK
stevenbey
All-Star
16526 Points
3378 Posts
Re: How to refresh parent window with in iframe!
Jan 19, 2004 11:31 AM|LINK
http://stevenbey.com
Recursion: see Recursion
renateves
Member
585 Points
117 Posts
Re: How to refresh parent window with in iframe!
Jan 19, 2004 03:05 PM|LINK
stevenbey
All-Star
16526 Points
3378 Posts
Re: How to refresh parent window with in iframe!
Jan 19, 2004 03:14 PM|LINK
http://stevenbey.com
Recursion: see Recursion
stevenbey
All-Star
16526 Points
3378 Posts
Re: How to refresh parent window with in iframe!
Jan 19, 2004 03:18 PM|LINK
http://stevenbey.com
Recursion: see Recursion
renateves
Member
585 Points
117 Posts
Re: How to refresh parent window with in iframe!
Jan 19, 2004 04:38 PM|LINK
stevenbey
All-Star
16526 Points
3378 Posts
Re: How to refresh parent window with in iframe!
Jan 19, 2004 04:45 PM|LINK
http://stevenbey.com
Recursion: see Recursion
renateves
Member
585 Points
117 Posts
Re: How to refresh parent window with in iframe!
Jan 19, 2004 04:57 PM|LINK