How do I check if the user has blocked the pop-up and pop up message that popups are turned off in ASP.Net?

I want check if the user turned off the popups and pop a message that popups are turned off.
how do I do it in ASP.Net?
reach_prgmmerAsked:
Who is Participating?
 
Chandan_GowdaConnect With a Mentor Commented:
you can use a JavaScript. Please follow the below link.
http://davidwalsh.name/popup-block-javascript
0
 
sindhuxyzConnect With a Mentor Commented:
You cannot user server side script to control client browser, instead use JavaScript. You can use Javascript variables with your code behind as well
0
 
Kalpesh ChhatralaConnect With a Mentor Software ConsultantCommented:
Sample Java Script
var win = window.open(wurl, wname, wfeatures);
if(win == null || typeof(win) == "undefined") {
   alert("Please enabled popups for this site to continue.");  
}

Open in new window


check also below link
http://www.michaelbarton.name/2010/01/17/how-to-check-if-your-popup-was-blocked-using-javascript/
0
 
reach_prgmmerAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.