Sunday, June 2, 2024
Homepage · c#
 Popular · Latest · Hot · Upcoming
183
rated 0 times [  190] [ 7]  / answers: 1 / hits: 22389  / 11 Years ago, mon, november 25, 2013, 12:00:00

I try to close my current tab after confirm so i put the following code at the end of my confirm button , but the tab doesn't close !






   string jScript = <script>close_window();</script>;
ClientScript.RegisterClientScriptBlock(this.GetType(), keyClientBlock, jScript);

More From » c#

 Answers
52

If you want to close the current window, you could try this:



string jScript = <script>window.close();</script>;
ClientScript.RegisterClientScriptBlock(this.GetType(), keyClientBlock, jScript);

[#74075] Saturday, November 23, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
admin

Total Points: 468
Total Questions: 103
Total Answers: 103

Location: Equatorial Guinea
Member since Sun, Feb 14, 2021
3 Years ago
;