Question : self.close

How do I close a popup in the VB.NET code that was opened using Javascript of:

PopupWindow = window.open("AddEditQuantity.aspx?mode=0 &ItemID=" + ItemID,
                                        'AddEditQuantity', settings);
PopupWindow.focus();

Answer : self.close

To close window from code behind below is the code in c#:
1:
Page.ClientScript.RegisterStartupScript(this.GetType(), "closewindow", "<script language=JavaScript>window.close();</script>");
Random Solutions  
 
programming4us programming4us