Refresh Opened showModalDialog window

Hi all,

I would like to know how to refresh a Opened showModalDialog window.

I used …

	foo = window.showModalDialog('FULL_path_to_script.php', window);
	window.self.location.reload(true);

… but what I get is a New showModalDialog opening, but NOT into the same window, namely, what I get is the effect of a HTML “_blank” opening a new showModalDialog.

I used window.location.reload(true) with the same result

Any help is welcome. Thank you very much in advance.

Mapg

Best way to deal with Modal Dialogs is to load a page with an iframe and then load the original content. That way you to use the modal dialog as a normal window, refresh etc.

Thank you for your advise.

Anyway I solved this issue using AJAX and loading a PHP script into the Modal Dialog.

Regards,

Mapg

i done this.but this is indirect.

Add one server control with onclick event like

Aspx:

Javascript:

function temp()
{
document.getElementById(‘<%=lnkRefreshShowModalDialog.ClientID%>’).click();
}

<asp:LinkButton Runat=“Server” id=“lnkRefreshShowModalDialog” OnClick=“RefreshShowModalDialog”/>

Aspx.cs:

public void RefreshShowModalDialog(object o,EventArgs e)
{
Response.redirect(Request.URL);
}

if u know some other step. let me.