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
333 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delete HTML table rows 12 29
VB: Convert 2 dates to specific format 24 48
start a process from a service 3 22
Please explain the parts of these 2 LINQ expressions 3 30
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 …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

773 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