Hi
In our asp.net project so many time we will get a senario to give confirmation alert message whenever somebody click on close icon of page specially in long registration page.
We can do this task using few line of javascript like this.
<script language="JavaScript" type="text/javascript">
window.onbeforeunload = Unload_Call;function Unload_Call() {
var Message = "Are you sure,do you want to leave this page?";
return Message;
}
</script>