Wrox Programmer Forums
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 9th, 2009, 09:14 AM
Authorized User
Join Date: May 2007
Posts: 95
Thanks: 5
Thanked 0 Times in 0 Posts
Question Alert for popup blocker in C#

Hi All, i have a very specific problem. I am opening a new window while clicking on print button. I want to give alert - "Please turn off the popup blocker' whenever the popup is blocked. How can i do this in c#. My application is a web application and i have developed it using c#.

code -

protectedvoid btnPrint_Click(object sender, EventArgs e)
Empno = Convert.ToInt16(Session["UserID"]);
ScriptManager.RegisterStartupScript(this, GetType(), "open", "popupWin=window.open('LT_Application_New_Claim_Print.aspx?Mode=" + "PRINT" + "&Empno=" + Empno + "&Balance=" + txtBalance.Text + "&AdvanceClaimed=" + txtAdvPaid.Text + "&ApplnNo=" + hdnApplnNo.Value + "&PageType=" + hdnPageType.Value + "&Location=" + Session["LocCode"].ToString() + "&AppnType=" + hdnAppnType.Value+ "','LTA', 'height=400, width=980,scrollbars=yes, resizable=yes');", true);

How can i throw alert through c#


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session tracking with google popup blocker dshamim Classic ASP Professional 0 December 20th, 2006 09:48 AM
ClientScript. : window.open -> Popup Blocker Issue AbrarNazeer ASP.NET 2.0 Professional 3 September 20th, 2006 09:59 AM
JavaScript : window.open -> Popup Blocker Issue AbrarNazeer Pro JSP 0 September 2nd, 2006 05:49 AM
PopUp blocker In C# VB.net nashnash ASP.NET 1.0 and 1.1 Professional 1 September 29th, 2004 03:53 AM
popup blinking alert in task bar when completed sirsyme Javascript 6 August 25th, 2003 01:24 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.