Solved

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

Posted on 2011-02-28
4
327 Views
Last Modified: 2012-05-11
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?
0
Comment
Question by:reach_prgmmer
4 Comments
 
LVL 7

Accepted Solution

by:
Chandan_Gowda earned 167 total points
ID: 34998892
you can use a JavaScript. Please follow the below link.
http://davidwalsh.name/popup-block-javascript
0
 
LVL 5

Assisted Solution

by:sindhuxyz
sindhuxyz earned 167 total points
ID: 34999110
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
 
LVL 16

Assisted Solution

by:Kalpesh Chhatrala
Kalpesh Chhatrala earned 166 total points
ID: 34999158
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
 

Author Closing Comment

by:reach_prgmmer
ID: 35010275
Thanks
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now