Open Popup Window and Close the window that Opened it

I'm using some code that I found on this site to open a Popup window with a Button Click for a Crystal Report:

Dim PopUpScript As String = ""

Page.ClientScript.RegisterStartupScript(Me.GetType(), "PopUpWindow", PopUpScript, False)

After the Popup Window shows the Report I would like to close the window that opened this popup window.

 Thanks,

Mark

0
smithmrk
5/21/2008 3:48:37 PM
📁 asp.net.web-forms
📃 93655 articles.
⭐ 6 followers.

💬 1 Replies
👁️‍🗨️ 2433 Views

just add

window.close();

in

Dim PopUpScript As String = ""

I think it ask for promt before closing current window as this is inbuilt facility


Suyog
I am just using my free time,but if it helps you then my mark my post as answer
0
suyog
5/22/2008 10:52:37 AM