Link to home
Start Free TrialLog in
Avatar of sbornstein2
sbornstein2

asked on

ASP.Net/VB - Need to refresh showmodaldialog from another page - Need jedi

Hello all,

I have a aspx page that in my code behind I call showmodaldialog.  This opens a popup form and then the user clicks page down on that dialog which calls another processing page on the form action submit.

After my code runs on the processing page in the page load, I want to close that processing window immediately and refresh the modal aspx page so a page load occurs.  I added <base TARGET="_self"> to the modal dialog header as well.  Any idea?

I have tried the following in my processing page after the code runs the save:

  Dim scriptString As New StringBuilder

            scriptString.append("<script language=JavaScript>")
            scriptString.Append("opener.location.reload();")
            scriptString.Append("window.close();")
            scriptString.Append("return false;")
            scriptString.Append("</script>")

            If (Not IsStartupScriptRegistered("Startup")) Then
                RegisterStartupScript("Startup", scriptString.ToString)
            End If

But still not working.  Thanks for any help
ASKER CERTIFIED SOLUTION
Avatar of AsishRaj
AsishRaj
Flag of Fiji image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sbornstein2
sbornstein2

ASKER

i posted on the other post it looks like your doing the reload from the same call and page that is not what I am trying to do.  I need to reload the modal from another page.