If you want to close the window after executing code behind code.
string closeWindowScript = "<script language=javascript>window.top.close();</script>"; if ((!ClientScript.IsStartupScriptRegistered("clientScript"))) { ClientScript.RegisterStartupScript(Page.GetType(), "clientScript", closeWindowScript); }
No comments:
Post a Comment