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?
Who is Participating?
Chandan_GowdaConnect With a Mentor Commented:
you can use a JavaScript. Please follow the below link.
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
Kalpesh ChhatralaConnect With a Mentor Software ConsultantCommented:
Sample Java Script
var win =, 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
reach_prgmmerAuthor Commented:
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.