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("<scri pt language=JavaScript>")
scriptString.Append("opene r.location .reload(); ")
scriptString.Append("windo w.close(); ")
scriptString.Append("retur n false;")
scriptString.Append("</scr ipt>")
If (Not IsStartupScriptRegistered( "Startup") ) Then
RegisterStartupScript("Sta rtup", scriptString.ToString)
End If
But still not working. Thanks for any help
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("<scri
scriptString.Append("opene
scriptString.Append("windo
scriptString.Append("retur
scriptString.Append("</scr
If (Not IsStartupScriptRegistered(
RegisterStartupScript("Sta
End If
But still not working. Thanks for any help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER