Ask a Question related to ASP.NET General, Design and Development.
-
Helixpoint #1
Refresh a parent window???
I have a frameset. left and main. Inside the main frame I have a IFRAME. I
need to refresh the main frame when I post a form inside the IFRAME. I am
trying the code below with no luck??
Private Sub addMachine_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles addMachine.Click
Dim sScript As New System.Text.StringBuilder
sScript.Append("<SCRIPT language=""javascript"">" & vbCrLf)
sScript.Append("parent.window.opener.location =
parent.window.opener.location;" & vbCrLf)
sScript.Append("</SCRIPT>" & vbCrLf)
RegisterClientScriptBlock("ForceDefaultToScript", sScript.ToString)
End Sub
--
______________________
David Fetrow
HelixPoint LLC.
[url]http://www.helixpoint.com[/url]
[email]davef@helixpoint.com[/email]
Interested in Affordable Email Marketing?
Check out the HelixMailer at [url]http://www.helixpoint.com/helixmailer.asp[/url]
If you are interested in becoming a Reseller of HelixPoint products, contact
[email]davef@helixpoint.com[/email]
______________________
Helixpoint Guest
-
Close a pop-up, and refresh it's parent window
I would like to replace the CFLocation tag in this block of code, and have it instead: Generate an alert box to close the window, and refresh the... -
How to refresh a parent grid?
Greetings all, I have a nested datagrid setup. When one updates the child grid using edit, it also updates a field in the parent grid (the parent... -
can a popup window return data to parent window?
Is it possible to do the following in php: I want to have a main form open. In the form I want a button that will open a popup window so the user... -
refresh parent window on close showModalDialog?
Is it possible to make the parent window refresh when a modal dialog is closed? I know I can use window.opener.location.reload(true); for a... -
Refresh Parent window from child window causes problems
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence... -
Vidar Petursson #2
Re: Refresh a parent window???
Hi
If you want to refresh the whole frameset then this is ok...
If you only want to refresh the frame/document the iframe is located in
parent.location.href = "pagetogo.aspx";
Or
parent.location.reload(true);
--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"Helixpoint" <dave@helixpoint.com> wrote in message
news:eJnri7WQDHA.1556@TK2MSFTNGP10.phx.gbl...I> This works:)
>
> Private Sub addMachine_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles addMachine.Click
>
> Dim sScript As New System.Text.StringBuilder
>
> sScript.Append("<SCRIPT language=""javascript"">" & vbCrLf)
>
> sScript.Append("top.main.location = top.main.location;" & vbCrLf)
>
> sScript.Append("</SCRIPT>" & vbCrLf)
>
> RegisterClientScriptBlock("ForceDefaultToScript", sScript.ToString)
>
> End Sub
>
> "Helixpoint" <dave@helixpoint.com> wrote in message
> news:eoZlQvWQDHA.3880@tk2msftngp13.phx.gbl...> > I have a frameset. left and main. Inside the main frame I have a IFRAME.am> > need to refresh the main frame when I post a form inside the IFRAME. I> contact> > trying the code below with no luck??
> >
> >
> > Private Sub addMachine_Click(ByVal sender As System.Object, ByVal e As
> > System.EventArgs) Handles addMachine.Click
> >
> > Dim sScript As New System.Text.StringBuilder
> > sScript.Append("<SCRIPT language=""javascript"">" & vbCrLf)
> > sScript.Append("parent.window.opener.location =
> > parent.window.opener.location;" & vbCrLf)
> > sScript.Append("</SCRIPT>" & vbCrLf)
> > RegisterClientScriptBlock("ForceDefaultToScript", sScript.ToString)
> > End Sub
> >
> >
> > --
> >
> > ______________________
> > David Fetrow
> > HelixPoint LLC.
> > [url]http://www.helixpoint.com[/url]
> > [email]davef@helixpoint.com[/email]
> >
> > Interested in Affordable Email Marketing?
> > Check out the HelixMailer at [url]http://www.helixpoint.com/helixmailer.asp[/url]
> > If you are interested in becoming a Reseller of HelixPoint products,>> > [email]davef@helixpoint.com[/email]
> > ______________________
> >
> >
>
Vidar Petursson Guest



Reply With Quote

