Click here to Skip to main content
15,922,650 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,

when i am clicking on a button i have used the below code:

C#
Page.ClientScript.RegisterStartupScript(GetType(), "logout", "window.close();", true);

How can i know the user click on "yes" or "no".

If the user clicks on "no" i have to do one thing, if he clicks "yes" it will close the browser.

how can i catch the value in c#.net
Posted
Updated 12-Mar-12 23:23pm
v2

1 solution

Have a look at the confirm box in the link below.

http://www.w3schools.com/js/js_popup.asp[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900