In my web application, wheni click on GO button one new window will open [it is a page (.aspx page)]. in that new window when i click on submit button, the new window will close. please help me. Thank you.
Asked
Active
Viewed 647 times
1 Answers
0
Use javascript to call document.window.close() on the click event. You would need to post code or more details about your platform to provide any more.

Schroedingers Cat
- 3,099
- 1
- 15
- 33
-
@@schroedingers thank you for response i write the Client script code. it is closing the window but it is asking confirmation but i dont want it. i wnat to close window directly my code is like this.... ScriptManager.RegisterStartupScript(Button1, GetType(), "sas", "",false ); – Surya sasidhar Jul 13 '11 at 09:23
-
Closing without confirmation is "not possible for good reason". You might like to look at this post for more : http://stackoverflow.com/questions/1629801/javascript-to-close-ie6-ie7-ie8-and-firefox-without-confirmation-box – Schroedingers Cat Jul 13 '11 at 09:26
-
possible duplicate question: http://stackoverflow.com/questions/375406/programmatically-close-aspx-page-from-code-behind – Jordan Jun 01 '12 at 16:35