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
343 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

729 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