Wednesday, March 10, 2010

window.close in c# code behind and passing value in parent window

Response.Write(

"<script language=\"Javascript\">window.opener.document.forms[0].submit(); self.close();window.close();</script>");

Page.ClientScript.RegisterStartupScript(

this.GetType(), "myCloseScript", "window.close()", true);

No comments: